Class SubscriptionReferenceParsingHandler

  • All Implemented Interfaces:
    javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>, javax.xml.ws.handler.soap.SOAPHandler<javax.xml.ws.handler.soap.SOAPMessageContext>

    public class SubscriptionReferenceParsingHandler
    extends Object
    implements javax.xml.ws.handler.soap.SOAPHandler<javax.xml.ws.handler.soap.SOAPMessageContext>
    Subscription reference parsing handler is a SOAP handler on the Subscription Manager's side which takes care of parsing the reference parameters and retrieving the subscription ID from SOAP headers before the message is passed to the Subscription Manager itself. In handleMessage method, it is supposed to retrieve the UUID of the subscription and save it into the SOAPMessageContext as a String with the key 'uuid'
    • Constructor Detail

      • SubscriptionReferenceParsingHandler

        public SubscriptionReferenceParsingHandler​(String namespace,
                                                   String elementName)
      • SubscriptionReferenceParsingHandler

        public SubscriptionReferenceParsingHandler()
    • Method Detail

      • getHeaders

        public Set<QName> getHeaders()
        Specified by:
        getHeaders in interface javax.xml.ws.handler.soap.SOAPHandler<javax.xml.ws.handler.soap.SOAPMessageContext>
      • handleMessage

        public boolean handleMessage​(javax.xml.ws.handler.soap.SOAPMessageContext context)
        Specified by:
        handleMessage in interface javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>
      • handleFault

        public boolean handleFault​(javax.xml.ws.handler.soap.SOAPMessageContext context)
        Specified by:
        handleFault in interface javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>
      • close

        public void close​(javax.xml.ws.handler.MessageContext context)
        Specified by:
        close in interface javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>