|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cxf.transport.AbstractObservable
org.apache.cxf.transport.AbstractDestination
org.apache.cxf.transport.AbstractMultiplexDestination
org.apache.cxf.transport.http.AbstractHTTPDestination
public abstract class AbstractHTTPDestination
Common base for HTTP Destination implementations.
Nested Class Summary | |
---|---|
class |
AbstractHTTPDestination.BackChannelConduit
Backchannel conduit. |
Nested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination |
---|
AbstractDestination.AbstractBackChannelConduit |
Field Summary | |
---|---|
protected Bus |
bus
|
protected ConduitInitiator |
conduitInitiator
|
protected java.lang.String |
contextMatchStrategy
|
protected boolean |
fixedParameterOrder
|
static java.lang.String |
HTTP_CONTEXT
|
static java.lang.String |
HTTP_REQUEST
|
static java.lang.String |
HTTP_RESPONSE
|
protected boolean |
multiplexWithAddress
|
static java.lang.String |
PROTOCOL_HEADERS_CONTENT_TYPE
|
protected HTTPServerPolicy |
server
|
Fields inherited from class org.apache.cxf.transport.AbstractDestination |
---|
endpointInfo, reference |
Fields inherited from class org.apache.cxf.transport.AbstractObservable |
---|
incomingObserver |
Constructor Summary | |
---|---|
AbstractHTTPDestination(Bus b,
ConduitInitiator ci,
EndpointInfo ei,
boolean dp)
Constructor |
Method Summary | |
---|---|
void |
assertMessage(Message message)
|
boolean |
canAssert(javax.xml.namespace.QName type)
|
protected boolean |
contextMatchOnExact()
|
protected void |
copyRequestHeaders(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(Message message,
javax.servlet.http.HttpServletResponse response)
Copy the response headers into the response. |
protected java.io.OutputStream |
flushHeaders(Message outMessage)
|
protected static EndpointInfo |
getAddressValue(EndpointInfo ei)
|
protected static EndpointInfo |
getAddressValue(EndpointInfo ei,
boolean dp)
|
EndpointReferenceType |
getAddressWithId(java.lang.String id)
Builds an new endpoint reference using the current target reference as a template. |
protected java.lang.String |
getBasePath(java.lang.String contextPath)
|
java.lang.String |
getBeanName()
Get the configurable object's Bean name |
protected ConduitInitiator |
getConduitInitiator()
|
java.lang.String |
getContextMatchStrategy()
|
java.lang.String |
getId(java.util.Map context)
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 headers |
protected Conduit |
getInbuiltBackChannel(Message inMessage)
|
HTTPServerPolicy |
getServer()
|
boolean |
isFixedParameterOrder()
|
boolean |
isMultiplexWithAddress()
|
protected boolean |
isOneWay(Message message)
|
protected boolean |
markPartialResponse(Message partialResponse,
EndpointReferenceType decoupledTarget)
Mark message as a partial message. |
void |
setContextMatchStrategy(java.lang.String contextMatchStrategy)
|
void |
setFixedParameterOrder(boolean fixedParameterOrder)
|
protected void |
setHeaders(Message message)
Cache HTTP headers in message. |
void |
setMultiplexWithAddress(boolean multiplexWithAddress)
|
void |
setServer(HTTPServerPolicy server)
|
protected void |
setupMessage(Message inMessage,
javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
updateResponseHeaders(Message message)
|
Methods inherited from class org.apache.cxf.transport.AbstractDestination |
---|
getAddress, getBackChannel, 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 |
Field Detail |
---|
public static final java.lang.String HTTP_REQUEST
public static final java.lang.String HTTP_RESPONSE
public static final java.lang.String HTTP_CONTEXT
public static final java.lang.String PROTOCOL_HEADERS_CONTENT_TYPE
protected final Bus bus
protected final ConduitInitiator conduitInitiator
protected HTTPServerPolicy server
protected java.lang.String contextMatchStrategy
protected boolean fixedParameterOrder
protected boolean multiplexWithAddress
Constructor Detail |
---|
public AbstractHTTPDestination(Bus b, ConduitInitiator ci, EndpointInfo ei, boolean dp) throws java.io.IOException
b
- the associated Busci
- the associated conduit initiatorei
- the endpoint info of the destinationdp
- ture for adding the default port if it is missing
java.io.IOException
Method Detail |
---|
protected void setHeaders(Message message)
message
- the current messageprotected void updateResponseHeaders(Message message)
protected final boolean isOneWay(Message message)
message
- the message under consideration
protected ConduitInitiator getConduitInitiator()
getConduitInitiator
in class AbstractDestination
protected void copyRequestHeaders(Message message, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
message
- the current messageheaders
- the current set of headersprotected void copyResponseHeaders(Message message, javax.servlet.http.HttpServletResponse response)
message
- the current messageheaders
- the current set of headersprotected void setupMessage(Message inMessage, javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws java.io.IOException
java.io.IOException
protected java.lang.String getBasePath(java.lang.String contextPath) throws java.io.IOException
java.io.IOException
protected static EndpointInfo getAddressValue(EndpointInfo ei)
protected static EndpointInfo getAddressValue(EndpointInfo ei, boolean dp)
protected Conduit getInbuiltBackChannel(Message inMessage)
getInbuiltBackChannel
in class AbstractDestination
inMessage
- the incoming message
protected boolean markPartialResponse(Message partialResponse, EndpointReferenceType decoupledTarget)
markPartialResponse
in class AbstractDestination
partialResponse
- the partial response messagethe
- decoupled target
protected java.io.OutputStream flushHeaders(Message outMessage) throws java.io.IOException
java.io.IOException
protected boolean contextMatchOnExact()
public java.lang.String getBeanName()
Configurable
getBeanName
in interface Configurable
public EndpointReferenceType getAddressWithId(java.lang.String id)
AbstractMultiplexDestination
getAddressWithId
in interface MultiplexDestination
getAddressWithId
in class AbstractMultiplexDestination
MultiplexDestination.getAddressWithId(java.lang.String)
public java.lang.String getId(java.util.Map context)
AbstractMultiplexDestination
getId
in interface MultiplexDestination
getId
in class AbstractMultiplexDestination
context
- for this invocation. Obtained for example from
JAX-WS WebServiceContext.getMessageContext(). The context will
either contain the WS-A To content and/or some property that
identifies the target address, eg MessageContext.PATH_INFO for
the current invocation
MultiplexDestination.getId(java.util.Map)
public java.lang.String getContextMatchStrategy()
public void setContextMatchStrategy(java.lang.String contextMatchStrategy)
public boolean isFixedParameterOrder()
public void setFixedParameterOrder(boolean fixedParameterOrder)
public boolean isMultiplexWithAddress()
public void setMultiplexWithAddress(boolean multiplexWithAddress)
public HTTPServerPolicy getServer()
public void setServer(HTTPServerPolicy server)
public void assertMessage(Message message)
assertMessage
in interface Assertor
public boolean canAssert(javax.xml.namespace.QName type)
canAssert
in interface Assertor
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |