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:
Configurable,Assertor,Destination,DestinationWithEndpoint,MultiplexDestination,Observable
- Direct Known Subclasses:
JAXWSHttpSpiDestination,NettyHttpDestination,ServletDestination
public abstract class AbstractHTTPDestination
extends AbstractMultiplexDestination
implements Configurable, 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
AbstractDestination.AbstractBackChannelConduit -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final 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(Bus b, DestinationRegistry registry, EndpointInfo ei, String path, boolean dp) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate()Activate messages flow.voidassertMessage(Message message) booleanprotected booleanprotected voidDeactivate messages flow.voidprotected OutputStreamflushHeaders(Message outMessage) protected OutputStreamflushHeaders(Message outMessage, boolean getStream) protected static EndpointInfoprotected static EndpointInfogetAddressValue(EndpointInfo ei, boolean dp) org.apache.cxf.ws.addressing.EndpointReferenceTypeBuilds an new endpoint reference using the current target reference as a template.protected StringgetBasePath(String contextPath) Get the configurable object's Bean namegetBus()Obtain id from reference parameters of the ws-a to address Requires the existance of ws-a interceptors on dispatch path to provide access to the ws-a headersprotected ConduitgetInbuiltBackChannel(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, Message m) booleanbooleanprotected final booleanvoidprotected MessageretrieveFromContinuation(jakarta.servlet.http.HttpServletRequest req) protected MessageretrieveFromServlet3Async(jakarta.servlet.http.HttpServletRequest req) voidsetContextMatchStrategy(String contextMatchStrategy) voidsetFixedParameterOrder(boolean fixedParameterOrder) voidsetMultiplexWithAddress(boolean multiplexWithAddress) voidsetServer(HTTPServerPolicy server) protected voidsetupContinuation(Message inMessage, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected voidsetupMessage(Message inMessage, jakarta.servlet.ServletConfig config, jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) voidshutdown()Shutdown the Destination, i.e.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
-
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(Bus b, DestinationRegistry registry, 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
-
isOneWay
- 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, Message m) throws IOException - Throws:
IOException
-
setupMessage
protected void setupMessage(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
-
retrieveFromServlet3Async
-
setupContinuation
protected void setupContinuation(Message inMessage, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) -
getBasePath
- Throws:
IOException
-
getAddressValue
-
getAddressValue
-
getInbuiltBackChannel
- Specified by:
getInbuiltBackChannelin classAbstractDestination- Parameters:
inMessage- the incoming message- Returns:
- the inbuilt backchannel
-
flushHeaders
- Throws:
IOException
-
flushHeaders
- Throws:
IOException
-
contextMatchOnExact
protected boolean contextMatchOnExact() -
finalizeConfig
public void finalizeConfig() -
getBeanName
Description copied from interface:ConfigurableGet the configurable object's Bean name- Specified by:
getBeanNamein interfaceConfigurable- Returns:
- the bean name
-
getAddressWithId
Description copied from class:AbstractMultiplexDestinationBuilds an new endpoint reference using the current target reference as a template. The supplied id is endcoded using a reference parameter. This requires the ws-a interceptors to propagate the reference parameters on subsequent invokes using the returned reference.- Specified by:
getAddressWithIdin interfaceMultiplexDestination- Overrides:
getAddressWithIdin classAbstractMultiplexDestination- Parameters:
id- the id to encode in the new reference- Returns:
- the new reference with the id encoded as a reference parameter
- See Also:
-
getId
Description copied from class:AbstractMultiplexDestinationObtain id from reference parameters of the ws-a to address Requires the existance of ws-a interceptors on dispatch path to provide access to the ws-a headers- Specified by:
getIdin interfaceMultiplexDestination- Overrides:
getIdin classAbstractMultiplexDestination- Parameters:
context- the current invocation or message context- Returns:
- the id from the reference parameters of the ws-a-to address or null if not found
- See Also:
-
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
- Specified by:
assertMessagein interfaceAssertor
-
canAssert
-
releaseRegistry
public void releaseRegistry() -
getPath
-
activate
protected void activate()Description copied from class:AbstractObservableActivate messages flow.- Overrides:
activatein classAbstractObservable
-
deactivate
protected void deactivate()Description copied from class:AbstractObservableDeactivate messages flow.- Overrides:
deactivatein classAbstractObservable
-
shutdown
public void shutdown()Description copied from class:AbstractDestinationShutdown the Destination, i.e. stop accepting incoming messages.- Specified by:
shutdownin interfaceDestination- Overrides:
shutdownin classAbstractDestination
-