|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.datapower.wamt.amp.SubscriptionResponseCode
public class SubscriptionResponseCode
Provides enumerated values and helper methods for the response from the
device of the subscription request. This is very similar to SubscriptionState
,
this class has an additional state DUPLICATE
with a corresponding
URL of the subscription which already exists on the device.
An instance of this class is returned from a subscription request, so you do not need to create it explicity, you need to use only the gettr methods.
Commands.subscribeToDevice(DeviceContext, String, StringCollection, URL)
Field Summary | |
---|---|
static SubscriptionResponseCode |
ACTIVE
The requested subscription has been established on the device. |
static java.lang.String |
COPYRIGHT_2009_2010
|
static java.lang.String |
DUPLICATE_STRING
A String to test for when checking if the subscription request is a duplicate (the device already has a NotificationCatcher subscribed to it). |
static SubscriptionResponseCode |
FAULT
The requested subscription is a duplicate of one that already exists. |
static SubscriptionResponseCode |
NONE
The requested subscription does not exist on the device. |
Method Summary | |
---|---|
static SubscriptionResponseCode |
createWithDuplicate(java.lang.String url)
The requested subscription is a duplicate of one that already exists on the device. |
boolean |
equals(java.lang.Object that)
Compare two objects to see if they are equivalent. |
java.lang.String |
getDuplicateURL()
Getter for duplicate URL string |
int |
hashCode()
|
boolean |
isDuplicate()
Check if the response indicates that the subscription request was detected as a duplicate. |
void |
setDuplicateURL(java.lang.String duplicateURL)
Setter for duplicate URL string |
java.lang.String |
toString()
Get a human-readable String representation of this object. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT_2009_2010
public static final SubscriptionResponseCode ACTIVE
NONE
,
FAULT
,
createWithDuplicate(String)
,
SubscriptionState.ACTIVE
public static final SubscriptionResponseCode NONE
ACTIVE
,
FAULT
,
createWithDuplicate(String)
,
SubscriptionState.NONE
public static final SubscriptionResponseCode FAULT
ACTIVE
,
NONE
,
createWithDuplicate(String)
,
SubscriptionState.FAULT
public static final java.lang.String DUPLICATE_STRING
Method Detail |
---|
public static SubscriptionResponseCode createWithDuplicate(java.lang.String url)
Because this class needs to be thread-safe, this particular response can not be a singleton like the others.
ACTIVE
,
NONE
,
FAULT
,
isDuplicate()
public boolean isDuplicate()
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
that
- the other object to compare to "this"
ACTIVE
,
NONE
,
FAULT
,
isDuplicate()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getDuplicateURL()
public void setDuplicateURL(java.lang.String duplicateURL)
duplicateURL
- the duplicate URL string to be setpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |