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.servlet.ServletDestination
org.apache.cxf.transport.http_jetty.JettyHTTPDestination
- 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,org.apache.cxf.transport.servlet.ServletConfigAware
public class JettyHTTPDestination
extends org.apache.cxf.transport.servlet.ServletDestination
-
Nested Class Summary
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.PrincipalAuthorizationPolicyNested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination
org.apache.cxf.transport.AbstractDestination.AbstractBackChannelConduit -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JettyHTTPServerEngineprotected JettyHTTPHandlerprotected ClassLoaderprotected URLprotected JettyHTTPServerEngineFactoryprotected 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
ConstructorsModifierConstructorDescriptionprotectedJettyHTTPDestination(org.apache.cxf.Bus bus, org.apache.cxf.transport.http.DestinationRegistry registry, org.apache.cxf.service.model.EndpointInfo ei, URL nurl, JettyHTTPServerEngineFactory serverEngineFactory) JettyHTTPDestination(org.apache.cxf.Bus bus, org.apache.cxf.transport.http.DestinationRegistry registry, org.apache.cxf.service.model.EndpointInfo ei, JettyHTTPServerEngineFactory serverEngineFactory) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate()Activate receipt of incoming messages.protected JettyHTTPHandlercreateJettyHTTPHandler(JettyHTTPDestination jhd, boolean cmExact) 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) voidThis method is used to finalize the configuration after the configuration items have been set.protected OutputStreamflushHeaders(org.apache.cxf.message.Message outMessage, boolean getStream) protected StringgetAddress(org.apache.cxf.service.model.EndpointInfo endpointInfo) protected Stringprotected Loggerprotected voidinvokeComplete(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, org.apache.cxf.message.Message m) protected voidPost-configure retreival of server engine.protected org.apache.cxf.message.MessageretrieveFromContinuation(jakarta.servlet.http.HttpServletRequest req) voidsetServletContext(jakarta.servlet.ServletContext sc) Methods inherited from class org.apache.cxf.transport.servlet.ServletDestination
getBasePathMethods inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination
assertMessage, canAssert, contextMatchOnExact, flushHeaders, getAddressValue, getAddressValue, getAddressWithId, getBeanName, getBus, getContextMatchStrategy, getId, getInbuiltBackChannel, getPath, getServer, invoke, isFixedParameterOrder, isMultiplexWithAddress, isOneWay, releaseRegistry, retrieveFromServlet3Async, setContextMatchStrategy, setFixedParameterOrder, setMultiplexWithAddress, setServer, setupContinuation, 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
setMessageObserverMethods inherited from interface org.apache.cxf.transport.servlet.ServletConfigAware
onServletConfigAvailable
-
Field Details
-
engine
-
serverEngineFactory
-
handler
-
servletContext
protected jakarta.servlet.ServletContext servletContext -
nurl
-
loader
-
-
Constructor Details
-
JettyHTTPDestination
public JettyHTTPDestination(org.apache.cxf.Bus bus, org.apache.cxf.transport.http.DestinationRegistry registry, org.apache.cxf.service.model.EndpointInfo ei, JettyHTTPServerEngineFactory serverEngineFactory) throws IOException Constructor- Parameters:
bus- the associated Busregistry- the associated destinationRegistryei- the endpoint info of the destinationserverEngineFactory- the serverEngineFactory which could be used to create ServerEngine- Throws:
IOException
-
JettyHTTPDestination
protected JettyHTTPDestination(org.apache.cxf.Bus bus, org.apache.cxf.transport.http.DestinationRegistry registry, org.apache.cxf.service.model.EndpointInfo ei, URL nurl, JettyHTTPServerEngineFactory serverEngineFactory) throws IOException - Throws:
IOException
-
-
Method Details
-
getLogger
- Overrides:
getLoggerin classorg.apache.cxf.transport.servlet.ServletDestination
-
setServletContext
public void setServletContext(jakarta.servlet.ServletContext sc) -
retrieveEngine
Post-configure retreival of server engine.- Throws:
GeneralSecurityExceptionIOException
-
finalizeConfig
public void finalizeConfig()This method is used to finalize the configuration after the configuration items have been set.- Overrides:
finalizeConfigin classorg.apache.cxf.transport.http.AbstractHTTPDestination
-
getAddress
-
activate
protected void activate()Activate receipt of incoming messages.- Overrides:
activatein classorg.apache.cxf.transport.http.AbstractHTTPDestination
-
createJettyHTTPHandler
-
deactivate
protected void deactivate()Deactivate receipt of incoming messages.- Overrides:
deactivatein classorg.apache.cxf.transport.http.AbstractHTTPDestination
-
getBasePathForFullAddress
-
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, org.apache.cxf.message.Message m) throws IOException - Overrides:
invokeCompletein classorg.apache.cxf.transport.http.AbstractHTTPDestination- Throws:
IOException
-
flushHeaders
protected OutputStream flushHeaders(org.apache.cxf.message.Message outMessage, boolean getStream) throws IOException - Overrides:
flushHeadersin classorg.apache.cxf.transport.http.AbstractHTTPDestination- Throws:
IOException
-
getEngine
-
retrieveFromContinuation
protected org.apache.cxf.message.Message retrieveFromContinuation(jakarta.servlet.http.HttpServletRequest req) - Overrides:
retrieveFromContinuationin classorg.apache.cxf.transport.http.AbstractHTTPDestination
-