org.apache.cxf.transport.http_jetty
Class JettyHTTPDestination
java.lang.Object
org.apache.cxf.transport.AbstractObservable
org.apache.cxf.transport.AbstractDestination
org.apache.cxf.transport.AbstractMultiplexDestination
org.apache.cxf.transport.http.AbstractHTTPDestination
org.apache.cxf.transport.http_jetty.JettyHTTPDestination
- All Implemented Interfaces:
- org.apache.cxf.configuration.Configurable, org.apache.cxf.transport.Destination, org.apache.cxf.transport.DestinationWithEndpoint, org.apache.cxf.transport.MultiplexDestination, org.apache.cxf.transport.Observable, org.apache.cxf.ws.policy.Assertor
public class JettyHTTPDestination
- extends org.apache.cxf.transport.http.AbstractHTTPDestination
| Nested classes/interfaces inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination |
org.apache.cxf.transport.http.AbstractHTTPDestination.BackChannelConduit |
| Nested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination |
org.apache.cxf.transport.AbstractDestination.AbstractBackChannelConduit |
| Fields inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination |
bus, conduitInitiator, contextMatchStrategy, fixedParameterOrder, HTTP_CONFIG, HTTP_CONTEXT, HTTP_REQUEST, HTTP_RESPONSE, multiplexWithAddress, PARTIAL_RESPONSE, PROTOCOL_HEADERS_CONTENT_TYPE, server |
| Fields inherited from class org.apache.cxf.transport.AbstractDestination |
endpointInfo, reference |
| Fields inherited from class org.apache.cxf.transport.AbstractObservable |
incomingObserver |
|
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 java.lang.String |
getBasePathForFullAddress(java.lang.String addr)
|
ServerEngine |
getEngine()
|
protected java.util.logging.Logger |
getLogger()
|
protected void |
retrieveEngine()
Post-configure retreival of server engine. |
protected org.apache.cxf.message.MessageImpl |
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)
|
void |
shutdown()
|
| Methods inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination |
assertMessage, canAssert, contextMatchOnExact, copyRequestHeaders, copyResponseHeaders, flushHeaders, getAddressValue, getAddressValue, getAddressWithId, getBasePath, getBeanName, getConduitInitiator, getContextMatchStrategy, getId, getInbuiltBackChannel, getServer, isFixedParameterOrder, isMultiplexWithAddress, isOneWay, isPartialResponse, markPartialResponse, setContextMatchStrategy, setFixedParameterOrder, setHeaders, setMultiplexWithAddress, setServer, setupMessage, setupMessage, updateResponseHeaders |
| 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 |
engine
protected JettyHTTPServerEngine engine
transportFactory
protected JettyHTTPTransportFactory transportFactory
serverEngineFactory
protected JettyHTTPServerEngineFactory serverEngineFactory
servletContext
protected javax.servlet.ServletContext servletContext
nurl
protected java.net.URL nurl
JettyHTTPDestination
public JettyHTTPDestination(org.apache.cxf.Bus b,
JettyHTTPTransportFactory ci,
org.apache.cxf.service.model.EndpointInfo endpointInfo)
throws java.io.IOException
- Constructor, using Jetty server engine.
- Parameters:
b - the associated Busci - the associated conduit initiatorendpointInfo - the endpoint info of the destination
- Throws:
java.io.IOException
getLogger
protected java.util.logging.Logger getLogger()
- Specified by:
getLogger in class org.apache.cxf.transport.AbstractObservable
setServletContext
public void setServletContext(javax.servlet.ServletContext sc)
retrieveEngine
protected void retrieveEngine()
throws java.security.GeneralSecurityException,
java.io.IOException
- Post-configure retreival of server engine.
- Throws:
java.security.GeneralSecurityException
java.io.IOException
finalizeConfig
public void finalizeConfig()
throws java.security.GeneralSecurityException,
java.io.IOException
- This method is used to finalize the configuration
after the configuration items have been set.
- Throws:
java.security.GeneralSecurityException
java.io.IOException
activate
protected void activate()
- Activate receipt of incoming messages.
- Overrides:
activate in class org.apache.cxf.transport.AbstractObservable
deactivate
protected void deactivate()
- Deactivate receipt of incoming messages.
- Overrides:
deactivate in class org.apache.cxf.transport.AbstractObservable
getBasePathForFullAddress
protected java.lang.String getBasePathForFullAddress(java.lang.String addr)
doService
protected void doService(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
- Throws:
java.io.IOException
doService
protected void doService(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
- Throws:
java.io.IOException
serviceRequest
protected void serviceRequest(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
- Throws:
java.io.IOException
retrieveFromContinuation
protected org.apache.cxf.message.MessageImpl retrieveFromContinuation(javax.servlet.http.HttpServletRequest req)
shutdown
public void shutdown()
- Specified by:
shutdown in interface org.apache.cxf.transport.Destination- Overrides:
shutdown in class org.apache.cxf.transport.AbstractDestination
getEngine
public ServerEngine getEngine()
Apache CXF