Class JettyHTTPDestination

  • 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, org.apache.cxf.transport.servlet.ServletConfigAware

    public class JettyHTTPDestination
    extends org.apache.cxf.transport.servlet.ServletDestination
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination

        org.apache.cxf.transport.http.AbstractHTTPDestination.BackChannelConduit, org.apache.cxf.transport.http.AbstractHTTPDestination.PrincipalAuthorizationPolicy
      • Nested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination

        org.apache.cxf.transport.AbstractDestination.AbstractBackChannelConduit
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected JettyHTTPServerEngine engine  
      protected JettyHTTPHandler handler  
      protected ClassLoader loader  
      protected URL nurl  
      protected JettyHTTPServerEngineFactory serverEngineFactory  
      protected javax.servlet.ServletContext servletContext  
      • Fields inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination

        bus, certConstraints, contextMatchStrategy, cproviderFactory, CXF_ASYNC_CONTEXT, CXF_CONTINUATION_MESSAGE, decodeBasicAuthWithIso8859, enableWebSocket, fixedParameterOrder, HTTP_CONFIG, HTTP_CONTEXT, HTTP_CONTEXT_MATCH_STRATEGY, HTTP_REQUEST, HTTP_RESPONSE, isServlet3, multiplexWithAddress, path, registry, REQUEST_REDIRECTED, RESPONSE_COMMITED, RESPONSE_HEADERS_COPIED, serverPolicy, SERVICE_REDIRECTION
      • Fields inherited from class org.apache.cxf.transport.AbstractDestination

        endpointInfo, reference
      • Fields inherited from class org.apache.cxf.transport.AbstractObservable

        incomingObserver
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected JettyHTTPDestination​(org.apache.cxf.Bus bus, org.apache.cxf.transport.http.DestinationRegistry registry, org.apache.cxf.service.model.EndpointInfo ei, URL nurl, JettyHTTPServerEngineFactory serverEngineFactory)  
        JettyHTTPDestination​(org.apache.cxf.Bus bus, org.apache.cxf.transport.http.DestinationRegistry registry, org.apache.cxf.service.model.EndpointInfo ei, JettyHTTPServerEngineFactory serverEngineFactory)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void activate()
      Activate receipt of incoming messages.
      protected JettyHTTPHandler createJettyHTTPHandler​(JettyHTTPDestination jhd, boolean cmExact)  
      protected void deactivate()
      Deactivate receipt of incoming messages.
      protected void doService​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)  
      protected void doService​(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)  
      void finalizeConfig()
      This method is used to finalize the configuration after the configuration items have been set.
      protected OutputStream flushHeaders​(org.apache.cxf.message.Message outMessage, boolean getStream)  
      protected String getAddress​(org.apache.cxf.service.model.EndpointInfo endpointInfo)  
      protected String getBasePathForFullAddress​(String addr)  
      ServerEngine getEngine()  
      protected Logger getLogger()  
      protected void invokeComplete​(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, org.apache.cxf.message.Message m)  
      protected void retrieveEngine()
      Post-configure retreival of server engine.
      protected org.apache.cxf.message.Message retrieveFromContinuation​(javax.servlet.http.HttpServletRequest req)  
      void setServletContext​(javax.servlet.ServletContext sc)  
      • Methods inherited from class org.apache.cxf.transport.servlet.ServletDestination

        getBasePath
      • Methods inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination

        assertMessage, canAssert, contextMatchOnExact, flushHeaders, getAddressValue, getAddressValue, getAddressWithId, getBeanName, getBus, getContextMatchStrategy, getId, getInbuiltBackChannel, getPath, getServer, invoke, isFixedParameterOrder, isMultiplexWithAddress, isOneWay, releaseRegistry, retrieveFromServlet3Async, setContextMatchStrategy, setFixedParameterOrder, setMultiplexWithAddress, setServer, setupContinuation, setupMessage, shutdown
      • Methods inherited from class org.apache.cxf.transport.AbstractDestination

        getAddress, getBackChannel, getEndpointInfo
      • Methods inherited from class org.apache.cxf.transport.AbstractObservable

        getMessageObserver, getTargetReference, getTargetReference, setMessageObserver
      • Methods inherited from interface org.apache.cxf.transport.Destination

        getAddress, getBackChannel, getMessageObserver
      • Methods inherited from interface org.apache.cxf.transport.Observable

        setMessageObserver
      • Methods inherited from interface org.apache.cxf.transport.servlet.ServletConfigAware

        onServletConfigAvailable
    • Constructor Detail

      • JettyHTTPDestination

        public JettyHTTPDestination​(org.apache.cxf.Bus bus,
                                    org.apache.cxf.transport.http.DestinationRegistry registry,
                                    org.apache.cxf.service.model.EndpointInfo ei,
                                    JettyHTTPServerEngineFactory serverEngineFactory)
                             throws IOException
        Constructor
        Parameters:
        bus - the associated Bus
        registry - the associated destinationRegistry
        ei - the endpoint info of the destination
        serverEngineFactory - the serverEngineFactory which could be used to create ServerEngine
        Throws:
        IOException
      • JettyHTTPDestination

        protected JettyHTTPDestination​(org.apache.cxf.Bus bus,
                                       org.apache.cxf.transport.http.DestinationRegistry registry,
                                       org.apache.cxf.service.model.EndpointInfo ei,
                                       URL nurl,
                                       JettyHTTPServerEngineFactory serverEngineFactory)
                                throws IOException
        Throws:
        IOException
    • Method Detail

      • getLogger

        protected Logger getLogger()
        Overrides:
        getLogger in class org.apache.cxf.transport.servlet.ServletDestination
      • setServletContext

        public void setServletContext​(javax.servlet.ServletContext sc)
      • finalizeConfig

        public void finalizeConfig()
        This method is used to finalize the configuration after the configuration items have been set.
        Overrides:
        finalizeConfig in class org.apache.cxf.transport.http.AbstractHTTPDestination
      • getAddress

        protected String getAddress​(org.apache.cxf.service.model.EndpointInfo endpointInfo)
      • activate

        protected void activate()
        Activate receipt of incoming messages.
        Overrides:
        activate in class org.apache.cxf.transport.http.AbstractHTTPDestination
      • deactivate

        protected void deactivate()
        Deactivate receipt of incoming messages.
        Overrides:
        deactivate in class org.apache.cxf.transport.http.AbstractHTTPDestination
      • getBasePathForFullAddress

        protected String getBasePathForFullAddress​(String addr)
      • doService

        protected void doService​(javax.servlet.http.HttpServletRequest req,
                                 javax.servlet.http.HttpServletResponse resp)
                          throws IOException
        Throws:
        IOException
      • doService

        protected void doService​(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
        Overrides:
        invokeComplete in class org.apache.cxf.transport.http.AbstractHTTPDestination
        Throws:
        IOException
      • flushHeaders

        protected OutputStream flushHeaders​(org.apache.cxf.message.Message outMessage,
                                            boolean getStream)
                                     throws IOException
        Overrides:
        flushHeaders in class org.apache.cxf.transport.http.AbstractHTTPDestination
        Throws:
        IOException
      • retrieveFromContinuation

        protected org.apache.cxf.message.Message retrieveFromContinuation​(javax.servlet.http.HttpServletRequest req)
        Overrides:
        retrieveFromContinuation in class org.apache.cxf.transport.http.AbstractHTTPDestination