Package org.apache.cxf.transport.http
Class AbstractHTTPDestination
java.lang.Object
org.apache.cxf.transport.AbstractObservable
org.apache.cxf.transport.AbstractDestination
org.apache.cxf.transport.AbstractMultiplexDestination
org.apache.cxf.transport.http.AbstractHTTPDestination
- 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
- Direct Known Subclasses:
ServletDestination
public abstract class AbstractHTTPDestination
extends org.apache.cxf.transport.AbstractMultiplexDestination
implements org.apache.cxf.configuration.Configurable, org.apache.cxf.transport.Assertor
Common base for HTTP Destination implementations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassBackchannel conduit.static final classNested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination
org.apache.cxf.transport.AbstractDestination.AbstractBackChannelConduit -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.cxf.Busprotected CertConstraintsprotected Stringprotected ContinuationProviderFactorystatic final Stringstatic final Stringprotected booleanprotected booleanprotected booleanstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected booleanprotected booleanprotected final Stringprotected DestinationRegistrystatic final Stringstatic final Stringstatic final Stringprotected HTTPServerPolicystatic final StringFields inherited from class org.apache.cxf.transport.AbstractDestination
endpointInfo, referenceFields inherited from class org.apache.cxf.transport.AbstractObservable
incomingObserver -
Constructor Summary
ConstructorsConstructorDescriptionAbstractHTTPDestination(org.apache.cxf.Bus b, DestinationRegistry registry, org.apache.cxf.service.model.EndpointInfo ei, String path, boolean dp) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate()voidassertMessage(org.apache.cxf.message.Message message) booleanprotected booleanprotected voidvoidprotected OutputStreamflushHeaders(org.apache.cxf.message.Message outMessage) protected OutputStreamflushHeaders(org.apache.cxf.message.Message outMessage, boolean getStream) protected static org.apache.cxf.service.model.EndpointInfogetAddressValue(org.apache.cxf.service.model.EndpointInfo ei) protected static org.apache.cxf.service.model.EndpointInfogetAddressValue(org.apache.cxf.service.model.EndpointInfo ei, boolean dp) org.apache.cxf.ws.addressing.EndpointReferenceTypeprotected StringgetBasePath(String contextPath) org.apache.cxf.BusgetBus()protected org.apache.cxf.transport.ConduitgetInbuiltBackChannel(org.apache.cxf.message.Message inMessage) getPath()voidinvoke(jakarta.servlet.ServletConfig config, jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected voidinvokeComplete(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, org.apache.cxf.message.Message m) booleanbooleanprotected final booleanisOneWay(org.apache.cxf.message.Message message) voidprotected org.apache.cxf.message.MessageretrieveFromContinuation(jakarta.servlet.http.HttpServletRequest req) protected org.apache.cxf.message.MessageretrieveFromServlet3Async(jakarta.servlet.http.HttpServletRequest req) voidsetContextMatchStrategy(String contextMatchStrategy) voidsetFixedParameterOrder(boolean fixedParameterOrder) voidsetMultiplexWithAddress(boolean multiplexWithAddress) voidsetServer(HTTPServerPolicy server) protected voidsetupContinuation(org.apache.cxf.message.Message inMessage, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected voidsetupMessage(org.apache.cxf.message.Message inMessage, jakarta.servlet.ServletConfig config, jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) voidshutdown()Methods inherited from class org.apache.cxf.transport.AbstractDestination
getAddress, getBackChannel, getEndpointInfoMethods inherited from class org.apache.cxf.transport.AbstractObservable
getLogger, 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
-
HTTP_REQUEST
- See Also:
-
HTTP_RESPONSE
- See Also:
-
HTTP_CONTEXT
- See Also:
-
HTTP_CONFIG
- See Also:
-
HTTP_CONTEXT_MATCH_STRATEGY
- See Also:
-
RESPONSE_HEADERS_COPIED
- See Also:
-
RESPONSE_COMMITED
- See Also:
-
REQUEST_REDIRECTED
- See Also:
-
CXF_CONTINUATION_MESSAGE
- See Also:
-
CXF_ASYNC_CONTEXT
- See Also:
-
SERVICE_REDIRECTION
- See Also:
-
bus
protected final org.apache.cxf.Bus bus -
registry
-
path
-
serverPolicy
-
contextMatchStrategy
-
fixedParameterOrder
protected boolean fixedParameterOrder -
multiplexWithAddress
protected boolean multiplexWithAddress -
certConstraints
-
isServlet3
protected boolean isServlet3 -
decodeBasicAuthWithIso8859
protected boolean decodeBasicAuthWithIso8859 -
cproviderFactory
-
enableWebSocket
protected boolean enableWebSocket
-
-
Constructor Details
-
AbstractHTTPDestination
public AbstractHTTPDestination(org.apache.cxf.Bus b, DestinationRegistry registry, org.apache.cxf.service.model.EndpointInfo ei, String path, boolean dp) throws IOException Constructor- Parameters:
b- the associated Busregistry- the destination registryei- the endpoint info of the destinationpath- the pathdp- true for adding the default port if it is missing- Throws:
IOException
-
-
Method Details
-
getBus
public org.apache.cxf.Bus getBus() -
isOneWay
protected final boolean isOneWay(org.apache.cxf.message.Message message) - Parameters:
message- the message under consideration- Returns:
- true iff the message has been marked as oneway
-
invoke
public void invoke(jakarta.servlet.ServletConfig config, 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 - Throws:
IOException
-
setupMessage
protected void setupMessage(org.apache.cxf.message.Message inMessage, jakarta.servlet.ServletConfig config, jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException - Throws:
IOException
-
retrieveFromContinuation
protected org.apache.cxf.message.Message retrieveFromContinuation(jakarta.servlet.http.HttpServletRequest req) -
retrieveFromServlet3Async
protected org.apache.cxf.message.Message retrieveFromServlet3Async(jakarta.servlet.http.HttpServletRequest req) -
setupContinuation
protected void setupContinuation(org.apache.cxf.message.Message inMessage, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) -
getBasePath
- Throws:
IOException
-
getAddressValue
protected static org.apache.cxf.service.model.EndpointInfo getAddressValue(org.apache.cxf.service.model.EndpointInfo ei) -
getAddressValue
protected static org.apache.cxf.service.model.EndpointInfo getAddressValue(org.apache.cxf.service.model.EndpointInfo ei, boolean dp) -
getInbuiltBackChannel
protected org.apache.cxf.transport.Conduit getInbuiltBackChannel(org.apache.cxf.message.Message inMessage) - Specified by:
getInbuiltBackChannelin classorg.apache.cxf.transport.AbstractDestination- Parameters:
inMessage- the incoming message- Returns:
- the inbuilt backchannel
-
flushHeaders
- Throws:
IOException
-
flushHeaders
protected OutputStream flushHeaders(org.apache.cxf.message.Message outMessage, boolean getStream) throws IOException - Throws:
IOException
-
contextMatchOnExact
protected boolean contextMatchOnExact() -
finalizeConfig
public void finalizeConfig() -
getBeanName
- Specified by:
getBeanNamein interfaceorg.apache.cxf.configuration.Configurable
-
getAddressWithId
- Specified by:
getAddressWithIdin interfaceorg.apache.cxf.transport.MultiplexDestination- Overrides:
getAddressWithIdin classorg.apache.cxf.transport.AbstractMultiplexDestination
-
getId
- Specified by:
getIdin interfaceorg.apache.cxf.transport.MultiplexDestination- Overrides:
getIdin classorg.apache.cxf.transport.AbstractMultiplexDestination
-
getContextMatchStrategy
-
setContextMatchStrategy
-
isFixedParameterOrder
public boolean isFixedParameterOrder() -
setFixedParameterOrder
public void setFixedParameterOrder(boolean fixedParameterOrder) -
isMultiplexWithAddress
public boolean isMultiplexWithAddress() -
setMultiplexWithAddress
public void setMultiplexWithAddress(boolean multiplexWithAddress) -
getServer
-
setServer
-
assertMessage
public void assertMessage(org.apache.cxf.message.Message message) - Specified by:
assertMessagein interfaceorg.apache.cxf.transport.Assertor
-
canAssert
- Specified by:
canAssertin interfaceorg.apache.cxf.transport.Assertor
-
releaseRegistry
public void releaseRegistry() -
getPath
-
activate
protected void activate()- Overrides:
activatein classorg.apache.cxf.transport.AbstractObservable
-
deactivate
protected void deactivate()- Overrides:
deactivatein classorg.apache.cxf.transport.AbstractObservable
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceorg.apache.cxf.transport.Destination- Overrides:
shutdownin classorg.apache.cxf.transport.AbstractDestination
-