Class SubscriptionRequest
java.lang.Object
org.forgerock.openig.tools.notifications.ws.SubscriptionRequest
A
SubscriptionRequest
is a message send to the notification server when subscribing to a topic.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The different kind of subscription requests. -
Method Summary
Modifier and TypeMethodDescriptionReturns this message's action.getId()
Returns this message's correlation id.getTopic()
Returns the topic name.static SubscriptionRequest
subscribeTo
(String id, String topic) Builds a subscription request.static SubscriptionRequest
unsubscribeFrom
(String id, String topic) Builds an un-subscription request.
-
Method Details
-
subscribeTo
Builds a subscription request.- Parameters:
id
- correlation id (notnull
)topic
- topic to subscribe for (notnull
)- Returns:
- a subscription message
-
unsubscribeFrom
Builds an un-subscription request.- Parameters:
id
- correlation id (notnull
)topic
- topic to un-subscribe from (notnull
)- Returns:
- an un-subscription message
-
getId
Returns this message's correlation id.- Returns:
- this message's correlation id.
-
getTopic
Returns the topic name.- Returns:
- the topic name.
-
getAction
Returns this message's action.- Returns:
- this message's action.
-