|
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 CertConstraints |
certConstraints
|
protected ConduitInitiator |
conduitInitiator
|
protected String |
contextMatchStrategy
|
protected boolean |
fixedParameterOrder
|
static String |
HTTP_CONFIG
|
static String |
HTTP_CONTEXT
|
static String |
HTTP_REQUEST
|
static String |
HTTP_RESPONSE
|
protected boolean |
multiplexWithAddress
|
static String |
PARTIAL_RESPONSE
|
static String |
PROTOCOL_HEADERS_CONTENT_TYPE
|
static String |
REQUEST_REDIRECTED
|
static String |
RESPONSE_COMMITED
|
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(QName type)
|
protected boolean |
contextMatchOnExact()
|
protected void |
copyRequestHeaders(Message message,
Map<String,List<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 OutputStream |
flushHeaders(Message outMessage)
|
protected static EndpointInfo |
getAddressValue(EndpointInfo ei)
|
protected static EndpointInfo |
getAddressValue(EndpointInfo ei,
boolean dp)
|
EndpointReferenceType |
getAddressWithId(String id)
Builds an new endpoint reference using the current target reference as a template. |
protected String |
getBasePath(String contextPath)
|
String |
getBeanName()
Get the configurable object's Bean name |
protected ConduitInitiator |
getConduitInitiator()
|
String |
getContextMatchStrategy()
|
String |
getId(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 |
isPartialResponse(Message m)
|
protected boolean |
markPartialResponse(Message partialResponse,
EndpointReferenceType decoupledTarget)
Mark message as a partial message. |
void |
setContextMatchStrategy(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.ServletConfig config,
javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
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, 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 |
| Field Detail |
|---|
public static final String HTTP_REQUEST
public static final String HTTP_RESPONSE
public static final String HTTP_CONTEXT
public static final String HTTP_CONFIG
public static final String PROTOCOL_HEADERS_CONTENT_TYPE
public static final String PARTIAL_RESPONSE
public static final String RESPONSE_COMMITED
public static final String REQUEST_REDIRECTED
protected final Bus bus
protected final ConduitInitiator conduitInitiator
protected HTTPServerPolicy server
protected String contextMatchStrategy
protected boolean fixedParameterOrder
protected boolean multiplexWithAddress
protected CertConstraints certConstraints
| Constructor Detail |
|---|
public AbstractHTTPDestination(Bus b,
ConduitInitiator ci,
EndpointInfo ei,
boolean dp)
throws IOException
b - the associated Busci - the associated conduit initiatorei - the endpoint info of the destinationdp - true for adding the default port if it is missing
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,
Map<String,List<String>> headers)
message - the current messageheaders - the current set of headers
protected void copyResponseHeaders(Message message,
javax.servlet.http.HttpServletResponse response)
message - the current messageheaders - the current set of headers
protected void setupMessage(Message inMessage,
javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
IOException
protected void setupMessage(Message inMessage,
javax.servlet.ServletConfig config,
javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
IOException
protected String getBasePath(String contextPath)
throws IOException
IOExceptionprotected static EndpointInfo getAddressValue(EndpointInfo ei)
protected static EndpointInfo getAddressValue(EndpointInfo ei,
boolean dp)
protected Conduit getInbuiltBackChannel(Message inMessage)
getInbuiltBackChannel in class AbstractDestinationinMessage - the incoming message
protected final boolean markPartialResponse(Message partialResponse,
EndpointReferenceType decoupledTarget)
markPartialResponse in class AbstractDestinationpartialResponse - the partial response messagethe - decoupled target
protected boolean isPartialResponse(Message m)
protected OutputStream flushHeaders(Message outMessage)
throws IOException
IOExceptionprotected boolean contextMatchOnExact()
public String getBeanName()
Configurable
getBeanName in interface Configurablepublic EndpointReferenceType getAddressWithId(String id)
AbstractMultiplexDestination
getAddressWithId in interface MultiplexDestinationgetAddressWithId in class AbstractMultiplexDestinationMultiplexDestination.getAddressWithId(java.lang.String)public String getId(Map context)
AbstractMultiplexDestination
getId in interface MultiplexDestinationgetId in class AbstractMultiplexDestinationcontext - 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 String getContextMatchStrategy()
public void setContextMatchStrategy(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 Assertorpublic boolean canAssert(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 | |||||||||