Class AbstractSubscriptionManager

    • Field Detail

      • LOG

        protected static final Logger LOG
      • context

        protected javax.xml.ws.WebServiceContext context
    • Constructor Detail

      • AbstractSubscriptionManager

        public AbstractSubscriptionManager()
    • Method Detail

      • renewOp

        public RenewResponse renewOp​(Renew body)
        Description copied from interface: SubscriptionManagerEndpoint
        The Renew operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#Renew
        Specified by:
        renewOp in interface SubscriptionManagerEndpoint
        Parameters:
        body - JAXB class Renew representing the body of the renew request
        Returns:
        JAXB class RenewResponse representing the response for the requester
      • getStatusOp

        public GetStatusResponse getStatusOp​(GetStatus body)
        Description copied from interface: SubscriptionManagerEndpoint
        The GetStatus operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#GetStatus
        Specified by:
        getStatusOp in interface SubscriptionManagerEndpoint
        Parameters:
        body - JAXB class GetStatus representing the body of the GetStatus request
        Returns:
        JAXB class GetStatusResponse representing the response for the requester
      • unsubscribeOp

        public UnsubscribeResponse unsubscribeOp​(Unsubscribe body)
        Description copied from interface: SubscriptionManagerEndpoint
        The Unsubscribe operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#Unsubscribe
        Specified by:
        unsubscribeOp in interface SubscriptionManagerEndpoint
        Parameters:
        body - JAXB class Unsubscribe representing the body of the Unsubscribe request
        Returns:
        JAXB class UnsubscribeResponse representing the response for the requester
      • retrieveSubscriptionUUID

        protected String retrieveSubscriptionUUID()
        Retrieves the subscription's uuid as it was specified in SOAP header. Messages sent to SubscriptionManager by clients always need to specify the uuid.
        Returns:
        the uuid of the subscription specified in this message's headers. Note: obtaining this doesn't yet make sure that this subscription actually exists.
      • obtainTicketFromDatabaseOrThrowFault

        protected SubscriptionTicket obtainTicketFromDatabaseOrThrowFault​(String uuid)
        searches the subscription database for a subscription by the given UUID
        Parameters:
        uuid -
        Returns:
        the SubscriptionTicket, or throws UnknownSubscription fault if no such subscription exists