public class SubscriptionData extends Object implements Externalizable
| Constructor and Description |
|---|
SubscriptionData() |
| Modifier and Type | Method and Description |
|---|---|
ContentType[] |
getAcceptedContentTypes()
Retrieves the optional content types, which should be accepted by the
enabler.
|
String |
getEventPackage()
Retrieves the subscription's event package, for instance "presence".
|
EventPackageParameter[] |
getEventParameters()
Retrieves the optional subscription event parameters, for instance in
xcap-diff event package there is a parameter named diff-processing which
can indicate what kind of content/detail should be included in
notifications.
|
int |
getExpires()
Retrieves the period between subscription refreshes.
|
String |
getNotifierURI()
Retrieves the notifier's URI, i.e., the URI identifying the resource
being subscribed.
|
String |
getSubscriberDisplayName()
Retrieves the subscriber's display name.
|
String |
getSubscriberURI()
Retrieves the subscriber's URI, i.e, the entity requesting the
subscription.
|
boolean |
isSupportResourceLists()
Indicates if the subscription should support resource lists as the
notifier.
|
void |
readExternal(ObjectInput in) |
SubscriptionData |
setAcceptedContentTypes(ContentType[] acceptedContentTypes)
Sets the optional content types, which should be accepted by the enabler.
|
SubscriptionData |
setEventPackage(String eventPackage)
Sets the subscription's event package, for instance "presence".
|
SubscriptionData |
setEventParameters(EventPackageParameter[] eventParameters)
Sets the optional subscription event parameters, for instance in
xcap-diff event package there is a parameter named diff-processing which
can indicate what kind of content/detail should be included in
notifications.
|
SubscriptionData |
setExpires(int expires)
Sets the period between subscription refreshes.
|
SubscriptionData |
setNotifierURI(String notifierURI)
Sets the notifier's URI, i.e., the URI identifying the resource being
subscribed.
|
SubscriptionData |
setSubscriberDisplayName(String subscriberDisplayName)
Sets the subscriber's display name.
|
SubscriptionData |
setSubscriberURI(String subscriberURI)
Sets the subscriber's URI, i.e, the entity requesting the subscription.
|
SubscriptionData |
setSupportResourceLists(boolean supportResourceLists)
Defines if the subscription should support resource lists as the
notifier.
|
void |
writeExternal(ObjectOutput out) |
public String getSubscriberURI()
public SubscriptionData setSubscriberURI(String subscriberURI)
subscriberURI - public String getSubscriberDisplayName()
public SubscriptionData setSubscriberDisplayName(String subscriberDisplayName)
subscriberDisplayName - public String getNotifierURI()
public SubscriptionData setNotifierURI(String notifierURI)
notifierURI - public String getEventPackage()
public SubscriptionData setEventPackage(String eventPackage)
eventPackage - public EventPackageParameter[] getEventParameters()
public SubscriptionData setEventParameters(EventPackageParameter[] eventParameters)
eventParameters - public ContentType[] getAcceptedContentTypes()
public SubscriptionData setAcceptedContentTypes(ContentType[] acceptedContentTypes)
acceptedContentTypes - public boolean isSupportResourceLists()
public SubscriptionData setSupportResourceLists(boolean supportResourceLists)
supportResourceLists - public int getExpires()
public SubscriptionData setExpires(int expires)
expires - public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2015. All Rights Reserved.