public class Notify extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
content |
protected String |
contentSubType |
protected String |
contentType |
protected int |
expires |
protected String |
notifier |
protected int |
retryAfter |
protected SubscriptionStatus |
status |
protected String |
statusExtension |
protected String |
subscriber |
protected TerminationReason |
terminationReason |
protected String |
terminationReasonExtension |
| Constructor and Description |
|---|
Notify() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContent() |
String |
getContentSubType() |
String |
getContentType() |
int |
getExpires()
Return number of seconds subscription will be alive.
|
String |
getNotifier() |
int |
getRetryAfter()
Return number of second, which enabler user must wait before his next
subscription attempt.
|
SubscriptionStatus |
getStatus()
Status of subscription.
|
String |
getStatusExtension()
In case
getStatus() returns SubscriptionStatus.extension
, this method returns string representation of "extension" |
String |
getSubscriber() |
TerminationReason |
getTerminationReason()
Fetches termination reason if subscription has been terminated.
|
String |
getTerminationReasonExtension()
In case
getTerminationReason() returns
TerminationReason.extension, this method returns string
representation of "extension" |
boolean |
isExpires()
Determines if notifier returned expires time of subscription.
|
boolean |
isRetryAfter()
Indicates if "retry-after" was present in exchanged messages.
|
String |
toString() |
protected TerminationReason terminationReason
protected String terminationReasonExtension
protected SubscriptionStatus status
protected String statusExtension
protected int retryAfter
protected int expires
protected String content
protected String contentType
protected String contentSubType
protected String notifier
protected String subscriber
public TerminationReason getTerminationReason()
public String getTerminationReasonExtension()
getTerminationReason() returns
TerminationReason.extension, this method returns string
representation of "extension"public SubscriptionStatus getStatus()
public String getStatusExtension()
getStatus() returns SubscriptionStatus.extension
, this method returns string representation of "extension"public boolean isRetryAfter()
public int getRetryAfter()
public boolean isExpires()
public int getExpires()
public String getContent()
public String getContentType()
public String getContentSubType()
public String getNotifier()
public String getSubscriber()
Copyright © 2015. All Rights Reserved.