Apache CXF API

org.apache.cxf.transport.servlet
Class ServletDestination

java.lang.Object
  extended by org.apache.cxf.transport.AbstractObservable
      extended by org.apache.cxf.transport.AbstractDestination
          extended by org.apache.cxf.transport.AbstractMultiplexDestination
              extended by org.apache.cxf.transport.http.AbstractHTTPDestination
                  extended by org.apache.cxf.transport.servlet.ServletDestination
All Implemented Interfaces:
Configurable, Destination, MultiplexDestination, Observable, Assertor

public class ServletDestination
extends AbstractHTTPDestination


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination
AbstractHTTPDestination.BackChannelConduit
 
Nested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination
AbstractDestination.AbstractBackChannelConduit
 
Field Summary
 
Fields inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination
bus, conduitInitiator, contextMatchStrategy, fixedParameterOrder, HTTP_CONTEXT, HTTP_REQUEST, HTTP_RESPONSE, multiplexWithAddress, PARTIAL_RESPONSE, PROTOCOL_HEADERS_CONTENT_TYPE, server
 
Fields inherited from class org.apache.cxf.transport.AbstractDestination
endpointInfo, reference
 
Fields inherited from class org.apache.cxf.transport.AbstractObservable
incomingObserver
 
Constructor Summary
ServletDestination(Bus b, ConduitInitiator ci, EndpointInfo ei, ServletTransportFactory fact, java.lang.String p)
          Constructor, allowing subsititution of configuration.
 
Method Summary
protected  java.lang.String getBasePath(java.lang.String contextPath)
           
 EndpointInfo getEndpointInfo()
           
protected  java.util.logging.Logger getLogger()
           
 MessageObserver getMessageObserver()
           
 void invoke(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 void shutdown()
          Shutdown the Destination, i.e.
 
Methods inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination
assertMessage, canAssert, contextMatchOnExact, copyRequestHeaders, copyResponseHeaders, flushHeaders, getAddressValue, getAddressValue, getAddressWithId, getBeanName, getConduitInitiator, getContextMatchStrategy, getId, getInbuiltBackChannel, getServer, isFixedParameterOrder, isMultiplexWithAddress, isOneWay, isPartialResponse, markPartialResponse, setContextMatchStrategy, setFixedParameterOrder, setHeaders, setMultiplexWithAddress, setServer, setupMessage, updateResponseHeaders
 
Methods inherited from class org.apache.cxf.transport.AbstractDestination
getAddress, getBackChannel
 
Methods inherited from class org.apache.cxf.transport.AbstractObservable
activate, deactivate, 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
 
Methods inherited from interface org.apache.cxf.transport.Observable
setMessageObserver
 

Constructor Detail

ServletDestination

public ServletDestination(Bus b,
                          ConduitInitiator ci,
                          EndpointInfo ei,
                          ServletTransportFactory fact,
                          java.lang.String p)
                   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

getLogger

protected java.util.logging.Logger getLogger()
Specified by:
getLogger in class AbstractObservable
Returns:
the logger to use

invoke

public void invoke(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
Overrides:
getBasePath in class AbstractHTTPDestination
Throws:
java.io.IOException

shutdown

public void shutdown()
Description copied from class: AbstractDestination
Shutdown the Destination, i.e. stop accepting incoming messages.

Specified by:
shutdown in interface Destination
Overrides:
shutdown in class AbstractDestination

getMessageObserver

public MessageObserver getMessageObserver()
Specified by:
getMessageObserver in interface Destination
Overrides:
getMessageObserver in class AbstractObservable
Returns:
the observer to notify on receipt of incoming message

getEndpointInfo

public EndpointInfo getEndpointInfo()

Apache CXF API

Apache CXF