Class SubscriptionRequest

java.lang.Object
org.forgerock.openig.tools.notifications.ws.SubscriptionRequest

public final class SubscriptionRequest extends Object
A SubscriptionRequest is a message send to the notification server when subscribing to a topic.
  • Method Details

    • subscribeTo

      public static SubscriptionRequest subscribeTo(String id, String topic)
      Builds a subscription request.
      Parameters:
      id - correlation id (not null)
      topic - topic to subscribe for (not null)
      Returns:
      a subscription message
    • unsubscribeFrom

      public static SubscriptionRequest unsubscribeFrom(String id, String topic)
      Builds an un-subscription request.
      Parameters:
      id - correlation id (not null)
      topic - topic to un-subscribe from (not null)
      Returns:
      an un-subscription message
    • getId

      public String getId()
      Returns this message's correlation id.
      Returns:
      this message's correlation id.
    • getTopic

      public String getTopic()
      Returns the topic name.
      Returns:
      the topic name.
    • getAction

      public SubscriptionRequest.Action getAction()
      Returns this message's action.
      Returns:
      this message's action.