Apache CXF API

org.apache.cxf.transport.http_jetty
Class JettyHTTPDestination

java.lang.Object
  extended by org.apache.cxf.transport.AbstractObservable
      extended by org.apache.cxf.transport.AbstractDestination
          extended by org.apache.cxf.transport.AbstractMultiplexDestination
              extended by org.apache.cxf.transport.http.AbstractHTTPDestination
                  extended by org.apache.cxf.transport.http_jetty.JettyHTTPDestination
All Implemented Interfaces:
Configurable, Assertor, Destination, DestinationWithEndpoint, MultiplexDestination, Observable

public class JettyHTTPDestination
extends AbstractHTTPDestination


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination
AbstractHTTPDestination.BackChannelConduit, AbstractHTTPDestination.PrincipalAuthorizationPolicy
 
Nested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination
AbstractDestination.AbstractBackChannelConduit
 
Field Summary
protected  JettyHTTPServerEngine engine
           
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, fixedParameterOrder, HTTP_CONFIG, HTTP_CONTEXT, HTTP_CONTEXT_MATCH_STRATEGY, HTTP_REQUEST, HTTP_RESPONSE, isServlet3, multiplexWithAddress, path, registry, REQUEST_REDIRECTED, RESPONSE_COMMITED, RESPONSE_HEADERS_COPIED, server, 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
JettyHTTPDestination(Bus bus, DestinationRegistry registry, EndpointInfo ei, JettyHTTPServerEngineFactory serverEngineFactory)
          Constructor, using Jetty server engine.
 
Method Summary
protected  void activate()
          Activate receipt of incoming messages.
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  String getBasePathForFullAddress(String addr)
           
 ServerEngine getEngine()
           
protected  Logger getLogger()
           
protected  void retrieveEngine()
          Post-configure retreival of server engine.
protected  Message retrieveFromContinuation(javax.servlet.http.HttpServletRequest req)
           
protected  void serviceRequest(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 void setServletContext(javax.servlet.ServletContext sc)
           
protected  void setupContinuation(Message inMessage, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 
Methods inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination
assertMessage, canAssert, contextMatchOnExact, flushHeaders, flushHeaders, getAddressValue, getAddressValue, getAddressWithId, getBasePath, getBeanName, getBus, getContextMatchStrategy, getId, getInbuiltBackChannel, getPath, getServer, invoke, isFixedParameterOrder, isMultiplexWithAddress, isOneWay, releaseRegistry, retrieveFromServlet3Async, setContextMatchStrategy, setFixedParameterOrder, setMultiplexWithAddress, setServer, setupMessage, 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.transport.Destination
getAddress, getBackChannel, getMessageObserver
 
Methods inherited from interface org.apache.cxf.transport.Observable
setMessageObserver
 

Field Detail

engine

protected JettyHTTPServerEngine engine

serverEngineFactory

protected JettyHTTPServerEngineFactory serverEngineFactory

servletContext

protected javax.servlet.ServletContext servletContext

nurl

protected URL nurl

loader

protected ClassLoader loader
Constructor Detail

JettyHTTPDestination

public JettyHTTPDestination(Bus bus,
                            DestinationRegistry registry,
                            EndpointInfo ei,
                            JettyHTTPServerEngineFactory serverEngineFactory)
                     throws IOException
Constructor, using Jetty server engine.

Parameters:
b - the associated Bus
ci - the associated conduit initiator
endpointInfo - the endpoint info of the destination
serverEngineFactory -
Throws:
IOException
Method Detail

getLogger

protected Logger getLogger()
Specified by:
getLogger in class AbstractObservable
Returns:
the logger to use

setServletContext

public void setServletContext(javax.servlet.ServletContext sc)

retrieveEngine

protected void retrieveEngine()
                       throws GeneralSecurityException,
                              IOException
Post-configure retreival of server engine.

Throws:
GeneralSecurityException
IOException

finalizeConfig

public void finalizeConfig()
This method is used to finalize the configuration after the configuration items have been set.

Overrides:
finalizeConfig in class AbstractHTTPDestination

activate

protected void activate()
Activate receipt of incoming messages.

Overrides:
activate in class AbstractHTTPDestination

deactivate

protected void deactivate()
Deactivate receipt of incoming messages.

Overrides:
deactivate in class 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

serviceRequest

protected void serviceRequest(javax.servlet.ServletContext context,
                              javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse resp)
                       throws IOException
Throws:
IOException

getEngine

public ServerEngine getEngine()

retrieveFromContinuation

protected Message retrieveFromContinuation(javax.servlet.http.HttpServletRequest req)
Overrides:
retrieveFromContinuation in class AbstractHTTPDestination

setupContinuation

protected void setupContinuation(Message inMessage,
                                 javax.servlet.http.HttpServletRequest req,
                                 javax.servlet.http.HttpServletResponse resp)
Overrides:
setupContinuation in class AbstractHTTPDestination

Apache CXF API

Apache CXF