org.apache.cxf.transport.http.netty.server
Class NettyHttpDestination
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.netty.server.NettyHttpDestination
- 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
public class NettyHttpDestination
- 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, org.apache.cxf.transport.http.AbstractHTTPDestination.PrincipalAuthorizationPolicy |
| 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, certConstraints, contextMatchStrategy, cproviderFactory, CXF_ASYNC_CONTEXT, CXF_CONTINUATION_MESSAGE, 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 |
| Methods inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination |
assertMessage, canAssert, contextMatchOnExact, flushHeaders, flushHeaders, getAddressValue, getAddressValue, getAddressWithId, getBeanName, getBus, getContextMatchStrategy, getId, getInbuiltBackChannel, getPath, getServer, invoke, isFixedParameterOrder, isMultiplexWithAddress, isOneWay, releaseRegistry, retrieveFromServlet3Async, setContextMatchStrategy, setFixedParameterOrder, setMultiplexWithAddress, setServer, 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 |
engine
protected NettyHttpServerEngine engine
serverEngineFactory
protected NettyHttpServerEngineFactory serverEngineFactory
servletContext
protected javax.servlet.ServletContext servletContext
loader
protected ClassLoader loader
nurl
protected URL nurl
NettyHttpDestination
public NettyHttpDestination(org.apache.cxf.Bus b,
org.apache.cxf.transport.http.DestinationRegistry registry,
org.apache.cxf.service.model.EndpointInfo ei,
NettyHttpServerEngineFactory serverEngineFactory)
throws IOException
- Constructor
- Parameters:
b - the associated Busregistry - the associated destinationRegistryei - the endpoint info of the destinationserverEngineFactory - the serverEngineFactory which could be used to create ServerEngine
- Throws:
IOException
getLogger
protected Logger getLogger()
- Specified by:
getLogger in class org.apache.cxf.transport.AbstractObservable
retrieveEngine
protected void retrieveEngine()
throws IOException
- Throws:
IOException
finalizeConfig
public void finalizeConfig()
- Overrides:
finalizeConfig in class org.apache.cxf.transport.http.AbstractHTTPDestination
getBasePath
protected String getBasePath(String contextPath)
throws IOException
- Overrides:
getBasePath in class org.apache.cxf.transport.http.AbstractHTTPDestination
- Throws:
IOException
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
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
getEngine
public ServerEngine getEngine()
retrieveFromContinuation
protected org.apache.cxf.message.Message retrieveFromContinuation(javax.servlet.http.HttpServletRequest req)
- Overrides:
retrieveFromContinuation in class org.apache.cxf.transport.http.AbstractHTTPDestination
setupContinuation
protected void setupContinuation(org.apache.cxf.message.Message inMessage,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
- Overrides:
setupContinuation in class org.apache.cxf.transport.http.AbstractHTTPDestination
getBasePathForFullAddress
protected String getBasePathForFullAddress(String addr)
getServletContext
public javax.servlet.ServletContext getServletContext()
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
Apache CXF