Class AbstractHTTPDestination

  • All Implemented Interfaces:
    org.apache.cxf.configuration.Configurable, org.apache.cxf.transport.Assertor, org.apache.cxf.transport.Destination, org.apache.cxf.transport.DestinationWithEndpoint, org.apache.cxf.transport.MultiplexDestination, org.apache.cxf.transport.Observable
    Direct Known Subclasses:
    ServletDestination

    public abstract class AbstractHTTPDestination
    extends org.apache.cxf.transport.AbstractMultiplexDestination
    implements org.apache.cxf.configuration.Configurable, org.apache.cxf.transport.Assertor
    Common base for HTTP Destination implementations.
    • Constructor Detail

      • AbstractHTTPDestination

        public AbstractHTTPDestination​(org.apache.cxf.Bus b,
                                       DestinationRegistry registry,
                                       org.apache.cxf.service.model.EndpointInfo ei,
                                       String path,
                                       boolean dp)
                                throws IOException
        Constructor
        Parameters:
        b - the associated Bus
        registry - the destination registry
        ei - the endpoint info of the destination
        path - the path
        dp - true for adding the default port if it is missing
        Throws:
        IOException
    • Method Detail

      • getBus

        public org.apache.cxf.Bus getBus()
      • isOneWay

        protected final boolean isOneWay​(org.apache.cxf.message.Message message)
        Parameters:
        message - the message under consideration
        Returns:
        true iff the message has been marked as oneway
      • invoke

        public void invoke​(javax.servlet.ServletConfig config,
                           javax.servlet.ServletContext context,
                           javax.servlet.http.HttpServletRequest req,
                           javax.servlet.http.HttpServletResponse resp)
                    throws IOException
        Throws:
        IOException
      • invokeComplete

        protected void invokeComplete​(javax.servlet.ServletContext context,
                                      javax.servlet.http.HttpServletRequest req,
                                      javax.servlet.http.HttpServletResponse resp,
                                      org.apache.cxf.message.Message m)
                               throws IOException
        Throws:
        IOException
      • setupMessage

        protected void setupMessage​(org.apache.cxf.message.Message inMessage,
                                    javax.servlet.ServletConfig config,
                                    javax.servlet.ServletContext context,
                                    javax.servlet.http.HttpServletRequest req,
                                    javax.servlet.http.HttpServletResponse resp)
                             throws IOException
        Throws:
        IOException
      • retrieveFromContinuation

        protected org.apache.cxf.message.Message retrieveFromContinuation​(javax.servlet.http.HttpServletRequest req)
      • retrieveFromServlet3Async

        protected org.apache.cxf.message.Message retrieveFromServlet3Async​(javax.servlet.http.HttpServletRequest req)
      • setupContinuation

        protected void setupContinuation​(org.apache.cxf.message.Message inMessage,
                                         javax.servlet.http.HttpServletRequest req,
                                         javax.servlet.http.HttpServletResponse resp)
      • getAddressValue

        protected static org.apache.cxf.service.model.EndpointInfo getAddressValue​(org.apache.cxf.service.model.EndpointInfo ei)
      • getAddressValue

        protected static org.apache.cxf.service.model.EndpointInfo getAddressValue​(org.apache.cxf.service.model.EndpointInfo ei,
                                                                                   boolean dp)
      • getInbuiltBackChannel

        protected org.apache.cxf.transport.Conduit getInbuiltBackChannel​(org.apache.cxf.message.Message inMessage)
        Specified by:
        getInbuiltBackChannel in class org.apache.cxf.transport.AbstractDestination
        Parameters:
        inMessage - the incoming message
        Returns:
        the inbuilt backchannel
      • contextMatchOnExact

        protected boolean contextMatchOnExact()
      • finalizeConfig

        public void finalizeConfig()
      • getBeanName

        public String getBeanName()
        Specified by:
        getBeanName in interface org.apache.cxf.configuration.Configurable
      • getAddressWithId

        public org.apache.cxf.ws.addressing.EndpointReferenceType getAddressWithId​(String id)
        Specified by:
        getAddressWithId in interface org.apache.cxf.transport.MultiplexDestination
        Overrides:
        getAddressWithId in class org.apache.cxf.transport.AbstractMultiplexDestination
      • getId

        public String getId​(Map<String,​Object> context)
        Specified by:
        getId in interface org.apache.cxf.transport.MultiplexDestination
        Overrides:
        getId in class org.apache.cxf.transport.AbstractMultiplexDestination
      • getContextMatchStrategy

        public String getContextMatchStrategy()
      • setContextMatchStrategy

        public void setContextMatchStrategy​(String contextMatchStrategy)
      • isFixedParameterOrder

        public boolean isFixedParameterOrder()
      • setFixedParameterOrder

        public void setFixedParameterOrder​(boolean fixedParameterOrder)
      • isMultiplexWithAddress

        public boolean isMultiplexWithAddress()
      • setMultiplexWithAddress

        public void setMultiplexWithAddress​(boolean multiplexWithAddress)
      • assertMessage

        public void assertMessage​(org.apache.cxf.message.Message message)
        Specified by:
        assertMessage in interface org.apache.cxf.transport.Assertor
      • canAssert

        public boolean canAssert​(QName type)
        Specified by:
        canAssert in interface org.apache.cxf.transport.Assertor
      • releaseRegistry

        public void releaseRegistry()
      • getPath

        public String getPath()
      • activate

        protected void activate()
        Overrides:
        activate in class org.apache.cxf.transport.AbstractObservable
      • deactivate

        protected void deactivate()
        Overrides:
        deactivate in class org.apache.cxf.transport.AbstractObservable
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface org.apache.cxf.transport.Destination
        Overrides:
        shutdown in class org.apache.cxf.transport.AbstractDestination