org.apache.cxf.transport.servlet
Class ServletDestination

java.lang.Object
  extended by org.apache.cxf.transport.AbstractDestination
      extended by org.apache.cxf.transport.servlet.ServletDestination
All Implemented Interfaces:
org.apache.cxf.transport.Destination, org.apache.cxf.transport.Observable

public class ServletDestination
extends org.apache.cxf.transport.AbstractDestination


Nested Class Summary
protected  class ServletDestination.BackChannelConduit
           
 
Nested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination
org.apache.cxf.transport.AbstractDestination.AbstractBackChannelConduit
 
Field Summary
protected  org.apache.cxf.Bus bus
           
protected  org.apache.cxf.transport.ConduitInitiator conduitInitiator
           
static java.lang.String HTTP_REQUEST
           
static java.lang.String HTTP_RESPONSE
           
protected  java.lang.String name
           
protected  java.net.URL nurl
           
 
Fields inherited from class org.apache.cxf.transport.AbstractDestination
endpointInfo, incomingObserver, reference
 
Constructor Summary
ServletDestination(org.apache.cxf.Bus b, org.apache.cxf.transport.ConduitInitiator ci, org.apache.cxf.service.model.EndpointInfo ei)
          Constructor, allowing subsititution of configuration.
 
Method Summary
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  void doMessage(org.apache.cxf.message.MessageImpl inMessage)
           
protected  java.io.OutputStream flushHeaders(org.apache.cxf.message.Message outMessage)
           
 org.apache.cxf.service.model.EndpointInfo getEndpointInfo()
           
protected  org.apache.cxf.transport.Conduit getInbuiltBackChannel(org.apache.cxf.message.Message inMessage)
           
protected  java.util.logging.Logger getLogger()
           
 org.apache.cxf.transport.MessageObserver getMessageObserver()
           
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.
protected  void setHeaders(org.apache.cxf.message.Message message)
          Cache HTTP headers in message.
protected  void updateResponseHeaders(org.apache.cxf.message.Message message)
           
 
Methods inherited from class org.apache.cxf.transport.AbstractDestination
activate, deactivate, getAddress, getBackChannel, getConduitInitiator, getTargetReference, setMessageObserver, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

bus

protected final org.apache.cxf.Bus bus

conduitInitiator

protected final org.apache.cxf.transport.ConduitInitiator conduitInitiator

name

protected java.lang.String name

nurl

protected java.net.URL nurl
Constructor Detail

ServletDestination

public ServletDestination(org.apache.cxf.Bus b,
                          org.apache.cxf.transport.ConduitInitiator ci,
                          org.apache.cxf.service.model.EndpointInfo ei)
                   throws java.io.IOException
Constructor, allowing subsititution of configuration.

Parameters:
b - the associated Bus
ci - the associated conduit initiator
ei - the endpoint info of the destination
cfg - the configuration
Throws:
java.io.IOException
Method Detail

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)

getLogger

protected java.util.logging.Logger getLogger()
Specified by:
getLogger in class org.apache.cxf.transport.AbstractDestination

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 message
the - decoupled target
Returns:
true iff partial responses are supported

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 message
headers - 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 message
headers - the current set of headers

doMessage

protected void doMessage(org.apache.cxf.message.MessageImpl inMessage)
                  throws java.io.IOException
Throws:
java.io.IOException

flushHeaders

protected java.io.OutputStream flushHeaders(org.apache.cxf.message.Message outMessage)
                                     throws java.io.IOException
Throws:
java.io.IOException

isOneWay

protected boolean isOneWay(org.apache.cxf.message.Message message)

getMessageObserver

public org.apache.cxf.transport.MessageObserver getMessageObserver()
Overrides:
getMessageObserver in class org.apache.cxf.transport.AbstractDestination

getEndpointInfo

public org.apache.cxf.service.model.EndpointInfo getEndpointInfo()


Copyright © 2006-2007 Apache Software Foundation. All Rights Reserved.