Class AbstractHTTPDestination

java.lang.Object
org.apache.cxf.transport.AbstractObservable
org.apache.cxf.transport.AbstractDestination
org.apache.cxf.transport.AbstractMultiplexDestination
org.apache.cxf.transport.http.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.
  • Field Details

  • Constructor Details

    • 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 Details

    • 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(jakarta.servlet.ServletConfig config, jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException
      Throws:
      IOException
    • invokeComplete

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

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

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

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

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

      protected String getBasePath(String contextPath) throws IOException
      Throws:
      IOException
    • 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
    • flushHeaders

      protected OutputStream flushHeaders(org.apache.cxf.message.Message outMessage) throws IOException
      Throws:
      IOException
    • flushHeaders

      protected OutputStream flushHeaders(org.apache.cxf.message.Message outMessage, boolean getStream) throws IOException
      Throws:
      IOException
    • 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)
    • getServer

      public HTTPServerPolicy getServer()
    • setServer

      public void setServer(HTTPServerPolicy server)
    • 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