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:
Configurable,Assertor,Destination,DestinationWithEndpoint,MultiplexDestination,Observable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination
AbstractHTTPDestination.BackChannelConduit, AbstractHTTPDestination.PrincipalAuthorizationPolicyNested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination
AbstractDestination.AbstractBackChannelConduit -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NettyHttpServerEngineprotected ClassLoaderprotected URLprotected NettyHttpServerEngineFactoryprotected jakarta.servlet.ServletContextFields 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_REDIRECTIONFields inherited from class org.apache.cxf.transport.AbstractDestination
endpointInfo, referenceFields inherited from class org.apache.cxf.transport.AbstractObservable
incomingObserver -
Constructor Summary
ConstructorsConstructorDescriptionNettyHttpDestination(Bus b, DestinationRegistry registry, EndpointInfo ei, NettyHttpServerEngineFactory serverEngineFactory) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate()Activate receipt of incoming messages.protected voidDeactivate receipt of incoming messages.protected voiddoService(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected voiddoService(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) voidprotected StringgetBasePath(String contextPath) protected Stringprotected Loggerjakarta.servlet.ServletContextprotected voidinvokeComplete(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, Message m) protected voidprotected MessageretrieveFromContinuation(jakarta.servlet.http.HttpServletRequest req) voidsetServletContext(jakarta.servlet.ServletContext servletContext) protected voidsetupContinuation(Message inMessage, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) 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, shutdownMethods inherited from class org.apache.cxf.transport.AbstractDestination
getAddress, getBackChannel, getEndpointInfoMethods inherited from class org.apache.cxf.transport.AbstractObservable
getMessageObserver, getTargetReference, getTargetReference, setMessageObserverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.transport.Destination
getAddress, getBackChannel, getMessageObserverMethods inherited from interface org.apache.cxf.transport.Observable
setMessageObserver
-
Field Details
-
engine
-
serverEngineFactory
-
servletContext
protected jakarta.servlet.ServletContext servletContext -
loader
-
nurl
-
-
Constructor Details
-
NettyHttpDestination
public NettyHttpDestination(Bus b, DestinationRegistry registry, 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
-
-
Method Details
-
getLogger
- Specified by:
getLoggerin classAbstractObservable- Returns:
- the logger to use
-
retrieveEngine
- Throws:
IOException
-
finalizeConfig
public void finalizeConfig()- Overrides:
finalizeConfigin classAbstractHTTPDestination
-
getBasePath
- Overrides:
getBasePathin classAbstractHTTPDestination- Throws:
IOException
-
activate
protected void activate()Activate receipt of incoming messages.- Overrides:
activatein classAbstractHTTPDestination
-
deactivate
protected void deactivate()Deactivate receipt of incoming messages.- Overrides:
deactivatein classAbstractHTTPDestination
-
doService
protected void doService(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException - Throws:
IOException
-
doService
protected void doService(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException - Throws:
IOException
-
invokeComplete
protected void invokeComplete(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, Message m) throws IOException - Overrides:
invokeCompletein classAbstractHTTPDestination- Throws:
IOException
-
getEngine
-
retrieveFromContinuation
- Overrides:
retrieveFromContinuationin classAbstractHTTPDestination
-
setupContinuation
protected void setupContinuation(Message inMessage, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) - Overrides:
setupContinuationin classAbstractHTTPDestination
-
getBasePathForFullAddress
-
getServletContext
public jakarta.servlet.ServletContext getServletContext() -
setServletContext
public void setServletContext(jakarta.servlet.ServletContext servletContext)
-