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:
- Configurable, Destination, DestinationWithEndpoint, MultiplexDestination, Observable, Assertor
public class JettyHTTPDestination
- extends AbstractHTTPDestination
Fields inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination |
bus, certConstraints, contextMatchStrategy, CXF_ASYNC_CONTEXT, CXF_CONTINUATION_MESSAGE, fixedParameterOrder, HTTP_CONFIG, HTTP_CONTEXT, HTTP_REQUEST, HTTP_RESPONSE, isServlet3, multiplexWithAddress, PROTOCOL_HEADERS_CONTENT_TYPE, REQUEST_REDIRECTED, RESPONSE_COMMITED, RESPONSE_HEADERS_COPIED, server |
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)
|
void |
shutdown()
Shutdown the Destination, i.e. |
Methods inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination |
assertMessage, canAssert, contextMatchOnExact, copyRequestHeaders, copyResponseHeaders, flushHeaders, flushHeaders, getAddressValue, getAddressValue, getAddressWithId, getBasePath, getBeanName, getContextMatchStrategy, getId, getInbuiltBackChannel, getServer, isFixedParameterOrder, isMultiplexWithAddress, isOneWay, retrieveFromServlet3Async, setContextMatchStrategy, setFixedParameterOrder, setHeaders, setMultiplexWithAddress, setServer, setupMessage, setupMessage, updateResponseHeaders |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
engine
protected JettyHTTPServerEngine engine
transportFactory
protected JettyHTTPTransportFactory transportFactory
serverEngineFactory
protected JettyHTTPServerEngineFactory serverEngineFactory
servletContext
protected javax.servlet.ServletContext servletContext
nurl
protected URL nurl
JettyHTTPDestination
public JettyHTTPDestination(Bus b,
JettyHTTPTransportFactory ci,
EndpointInfo endpointInfo)
throws IOException
- Constructor, using Jetty server engine.
- Parameters:
b
- the associated Busci
- the associated conduit initiatorendpointInfo
- the endpoint info of the destination
- Throws:
IOException
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()
throws GeneralSecurityException,
IOException
- This method is used to finalize the configuration
after the configuration items have been set.
- Throws:
GeneralSecurityException
IOException
activate
protected void activate()
- Activate receipt of incoming messages.
- Overrides:
activate
in class AbstractObservable
deactivate
protected void deactivate()
- Deactivate receipt of incoming messages.
- Overrides:
deactivate
in class AbstractObservable
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
shutdown
public void shutdown()
- Description copied from class:
AbstractDestination
- Shutdown the Destination, i.e. stop accepting incoming messages.
- Specified by:
shutdown
in interface Destination
- Overrides:
shutdown
in class AbstractDestination
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