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.Destination, org.apache.cxf.transport.DestinationWithEndpoint, org.apache.cxf.transport.MultiplexDestination, org.apache.cxf.transport.Observable, org.apache.cxf.ws.policy.Assertor
- Direct Known Subclasses:
- ServletDestination
public abstract class AbstractHTTPDestination
- extends org.apache.cxf.transport.AbstractMultiplexDestination
- implements org.apache.cxf.configuration.Configurable, org.apache.cxf.ws.policy.Assertor
Common base for HTTP Destination implementations.
| Nested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination |
org.apache.cxf.transport.AbstractDestination.AbstractBackChannelConduit |
| Fields inherited from class org.apache.cxf.transport.AbstractDestination |
endpointInfo, reference |
| Fields inherited from class org.apache.cxf.transport.AbstractObservable |
incomingObserver |
|
Constructor Summary |
AbstractHTTPDestination(org.apache.cxf.Bus b,
org.apache.cxf.transport.ConduitInitiator ci,
org.apache.cxf.service.model.EndpointInfo ei,
boolean dp)
Constructor |
|
Method Summary |
void |
assertMessage(org.apache.cxf.message.Message message)
|
boolean |
canAssert(javax.xml.namespace.QName type)
|
protected boolean |
contextMatchOnExact()
|
protected void |
copyRequestHeaders(org.apache.cxf.message.Message message,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
Copy the request headers into the message. |
protected void |
copyResponseHeaders(org.apache.cxf.message.Message message,
javax.servlet.http.HttpServletResponse response)
Copy the response headers into the response. |
protected java.io.OutputStream |
flushHeaders(org.apache.cxf.message.Message outMessage)
|
protected static org.apache.cxf.service.model.EndpointInfo |
getAddressValue(org.apache.cxf.service.model.EndpointInfo ei)
|
protected static org.apache.cxf.service.model.EndpointInfo |
getAddressValue(org.apache.cxf.service.model.EndpointInfo ei,
boolean dp)
|
org.apache.cxf.ws.addressing.EndpointReferenceType |
getAddressWithId(java.lang.String id)
|
protected java.lang.String |
getBasePath(java.lang.String contextPath)
|
java.lang.String |
getBeanName()
|
protected org.apache.cxf.transport.ConduitInitiator |
getConduitInitiator()
|
java.lang.String |
getContextMatchStrategy()
|
java.lang.String |
getId(java.util.Map context)
|
protected org.apache.cxf.transport.Conduit |
getInbuiltBackChannel(org.apache.cxf.message.Message inMessage)
|
HTTPServerPolicy |
getServer()
|
boolean |
isFixedParameterOrder()
|
boolean |
isMultiplexWithAddress()
|
protected boolean |
isOneWay(org.apache.cxf.message.Message message)
|
protected boolean |
markPartialResponse(org.apache.cxf.message.Message partialResponse,
org.apache.cxf.ws.addressing.EndpointReferenceType decoupledTarget)
Mark message as a partial message. |
void |
setContextMatchStrategy(java.lang.String contextMatchStrategy)
|
void |
setFixedParameterOrder(boolean fixedParameterOrder)
|
protected void |
setHeaders(org.apache.cxf.message.Message message)
Cache HTTP headers in message. |
void |
setMultiplexWithAddress(boolean multiplexWithAddress)
|
void |
setServer(HTTPServerPolicy server)
|
protected void |
setupMessage(org.apache.cxf.message.Message inMessage,
javax.servlet.ServletConfig config,
javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
setupMessage(org.apache.cxf.message.Message inMessage,
javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
updateResponseHeaders(org.apache.cxf.message.Message message)
|
| Methods inherited from class org.apache.cxf.transport.AbstractDestination |
getAddress, getBackChannel, getEndpointInfo, shutdown |
| Methods inherited from class org.apache.cxf.transport.AbstractObservable |
activate, deactivate, getLogger, getMessageObserver, getTargetReference, getTargetReference, setMessageObserver |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.cxf.transport.Destination |
getAddress, getBackChannel, getMessageObserver, shutdown |
| Methods inherited from interface org.apache.cxf.transport.Observable |
setMessageObserver |
HTTP_REQUEST
public static final java.lang.String HTTP_REQUEST
- See Also:
- Constant Field Values
HTTP_RESPONSE
public static final java.lang.String HTTP_RESPONSE
- See Also:
- Constant Field Values
HTTP_CONTEXT
public static final java.lang.String HTTP_CONTEXT
- See Also:
- Constant Field Values
HTTP_CONFIG
public static final java.lang.String HTTP_CONFIG
- See Also:
- Constant Field Values
PROTOCOL_HEADERS_CONTENT_TYPE
public static final java.lang.String PROTOCOL_HEADERS_CONTENT_TYPE
bus
protected final org.apache.cxf.Bus bus
conduitInitiator
protected final org.apache.cxf.transport.ConduitInitiator conduitInitiator
server
protected HTTPServerPolicy server
contextMatchStrategy
protected java.lang.String contextMatchStrategy
fixedParameterOrder
protected boolean fixedParameterOrder
multiplexWithAddress
protected boolean multiplexWithAddress
AbstractHTTPDestination
public AbstractHTTPDestination(org.apache.cxf.Bus b,
org.apache.cxf.transport.ConduitInitiator ci,
org.apache.cxf.service.model.EndpointInfo ei,
boolean dp)
throws java.io.IOException
- Constructor
- Parameters:
b - the associated Busci - the associated conduit initiatorei - the endpoint info of the destinationdp - true for adding the default port if it is missing
- Throws:
java.io.IOException
setHeaders
protected void setHeaders(org.apache.cxf.message.Message message)
- Cache HTTP headers in message.
- Parameters:
message - the current message
updateResponseHeaders
protected void updateResponseHeaders(org.apache.cxf.message.Message message)
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
getConduitInitiator
protected org.apache.cxf.transport.ConduitInitiator getConduitInitiator()
- Overrides:
getConduitInitiator in class org.apache.cxf.transport.AbstractDestination
- Returns:
- the associated conduit initiator
copyRequestHeaders
protected void copyRequestHeaders(org.apache.cxf.message.Message message,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
- Copy the request headers into the message.
- Parameters:
message - the current messageheaders - the current set of headers
copyResponseHeaders
protected void copyResponseHeaders(org.apache.cxf.message.Message message,
javax.servlet.http.HttpServletResponse response)
- Copy the response headers into the response.
- Parameters:
message - the current messageheaders - the current set of headers
setupMessage
protected void setupMessage(org.apache.cxf.message.Message inMessage,
javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
- Throws:
java.io.IOException
setupMessage
protected void setupMessage(org.apache.cxf.message.Message inMessage,
javax.servlet.ServletConfig config,
javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
- Throws:
java.io.IOException
getBasePath
protected java.lang.String getBasePath(java.lang.String contextPath)
throws java.io.IOException
- Throws:
java.io.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:
getInbuiltBackChannel in class org.apache.cxf.transport.AbstractDestination
- Parameters:
inMessage - the incoming message
- Returns:
- the inbuilt backchannel
markPartialResponse
protected boolean markPartialResponse(org.apache.cxf.message.Message partialResponse,
org.apache.cxf.ws.addressing.EndpointReferenceType decoupledTarget)
- Mark message as a partial message.
- Overrides:
markPartialResponse in class org.apache.cxf.transport.AbstractDestination
- Parameters:
partialResponse - the partial response messagethe - decoupled target
- Returns:
- true iff partial responses are supported
flushHeaders
protected java.io.OutputStream flushHeaders(org.apache.cxf.message.Message outMessage)
throws java.io.IOException
- Throws:
java.io.IOException
contextMatchOnExact
protected boolean contextMatchOnExact()
getBeanName
public java.lang.String getBeanName()
- Specified by:
getBeanName in interface org.apache.cxf.configuration.Configurable
getAddressWithId
public org.apache.cxf.ws.addressing.EndpointReferenceType getAddressWithId(java.lang.String id)
- Specified by:
getAddressWithId in interface org.apache.cxf.transport.MultiplexDestination- Overrides:
getAddressWithId in class org.apache.cxf.transport.AbstractMultiplexDestination
getId
public java.lang.String getId(java.util.Map context)
- Specified by:
getId in interface org.apache.cxf.transport.MultiplexDestination- Overrides:
getId in class org.apache.cxf.transport.AbstractMultiplexDestination
getContextMatchStrategy
public java.lang.String getContextMatchStrategy()
setContextMatchStrategy
public void setContextMatchStrategy(java.lang.String contextMatchStrategy)
isFixedParameterOrder
public boolean isFixedParameterOrder()
setFixedParameterOrder
public void setFixedParameterOrder(boolean fixedParameterOrder)
isMultiplexWithAddress
public boolean isMultiplexWithAddress()
setMultiplexWithAddress
public void setMultiplexWithAddress(boolean multiplexWithAddress)
getServer
public HTTPServerPolicy getServer()
setServer
public void setServer(HTTPServerPolicy server)
assertMessage
public void assertMessage(org.apache.cxf.message.Message message)
- Specified by:
assertMessage in interface org.apache.cxf.ws.policy.Assertor
canAssert
public boolean canAssert(javax.xml.namespace.QName type)
- Specified by:
canAssert in interface org.apache.cxf.ws.policy.Assertor
Apache CXF