public class JettyHTTPDestination extends ServletDestination
AbstractHTTPDestination.BackChannelConduit, AbstractHTTPDestination.PrincipalAuthorizationPolicy
AbstractDestination.AbstractBackChannelConduit
Modifier and Type | Field and Description |
---|---|
protected JettyHTTPServerEngine |
engine |
protected ClassLoader |
loader |
protected URL |
nurl |
protected JettyHTTPServerEngineFactory |
serverEngineFactory |
protected javax.servlet.ServletContext |
servletContext |
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
endpointInfo, reference
incomingObserver
Constructor and Description |
---|
JettyHTTPDestination(Bus bus,
DestinationRegistry registry,
EndpointInfo ei,
JettyHTTPServerEngineFactory serverEngineFactory)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
activate()
Activate receipt of incoming messages.
|
protected JettyHTTPHandler |
createJettyHTTPHandler(JettyHTTPDestination jhd,
boolean cmExact) |
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 OutputStream |
flushHeaders(Message outMessage,
boolean getStream) |
protected String |
getAddress(EndpointInfo endpointInfo) |
protected String |
getBasePathForFullAddress(String addr) |
ServerEngine |
getEngine() |
protected Logger |
getLogger() |
protected void |
invokeComplete(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
Message m) |
protected void |
retrieveEngine()
Post-configure retreival of server engine.
|
protected Message |
retrieveFromContinuation(javax.servlet.http.HttpServletRequest req) |
void |
setServletContext(javax.servlet.ServletContext sc) |
protected void |
setupContinuation(Message inMessage,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
getBasePath
assertMessage, canAssert, contextMatchOnExact, flushHeaders, getAddressValue, getAddressValue, getAddressWithId, getBeanName, getBus, getContextMatchStrategy, getId, getInbuiltBackChannel, getPath, getServer, invoke, isFixedParameterOrder, isMultiplexWithAddress, isOneWay, releaseRegistry, retrieveFromServlet3Async, setContextMatchStrategy, setFixedParameterOrder, setMultiplexWithAddress, setServer, setupMessage, shutdown
getAddress, getBackChannel, getEndpointInfo
getMessageObserver, getTargetReference, getTargetReference, setMessageObserver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAddress, getBackChannel, getMessageObserver
setMessageObserver
protected JettyHTTPServerEngine engine
protected JettyHTTPServerEngineFactory serverEngineFactory
protected javax.servlet.ServletContext servletContext
protected URL nurl
protected ClassLoader loader
public JettyHTTPDestination(Bus bus, DestinationRegistry registry, EndpointInfo ei, JettyHTTPServerEngineFactory serverEngineFactory) throws IOException
b
- the associated Busregistry
- the associated destinationRegistryei
- the endpoint info of the destinationserverEngineFactory
- the serverEngineFactory which could be used to create ServerEngineIOException
protected Logger getLogger()
getLogger
in class ServletDestination
public void setServletContext(javax.servlet.ServletContext sc)
protected void retrieveEngine() throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public void finalizeConfig()
finalizeConfig
in class AbstractHTTPDestination
protected String getAddress(EndpointInfo endpointInfo)
protected void activate()
activate
in class AbstractHTTPDestination
protected JettyHTTPHandler createJettyHTTPHandler(JettyHTTPDestination jhd, boolean cmExact)
protected void deactivate()
deactivate
in class AbstractHTTPDestination
protected void doService(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
IOException
protected void doService(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
IOException
protected void invokeComplete(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Message m) throws IOException
invokeComplete
in class AbstractHTTPDestination
IOException
protected OutputStream flushHeaders(Message outMessage, boolean getStream) throws IOException
flushHeaders
in class AbstractHTTPDestination
IOException
public ServerEngine getEngine()
protected Message retrieveFromContinuation(javax.servlet.http.HttpServletRequest req)
retrieveFromContinuation
in class AbstractHTTPDestination
protected void setupContinuation(Message inMessage, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
setupContinuation
in class AbstractHTTPDestination
Apache CXF