org.apache.cxf.transport.http
Class AbstractHTTPDestination

java.lang.Object
  extended by org.apache.cxf.transport.AbstractDestination
      extended by org.apache.cxf.transport.http.AbstractHTTPDestination
All Implemented Interfaces:
org.apache.cxf.configuration.Configurable, org.apache.cxf.transport.Destination, org.apache.cxf.transport.Observable
Direct Known Subclasses:
JettyHTTPDestination

public abstract class AbstractHTTPDestination
extends org.apache.cxf.transport.AbstractDestination
implements org.apache.cxf.configuration.Configurable

Common base for HTTP Destination implementations.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination
org.apache.cxf.transport.AbstractDestination.AbstractBackChannelConduit
 
Field Summary
protected  org.apache.cxf.configuration.security.AuthorizationPolicy authorization
           
protected  org.apache.cxf.Bus bus
           
protected  org.apache.cxf.transport.ConduitInitiator conduitInitiator
           
protected  java.lang.String contextMatchStrategy
           
protected  boolean fixedParameterOrder
           
protected  java.lang.String name
           
protected  java.net.URL nurl
           
protected  HTTPServerPolicy server
           
protected  org.apache.cxf.configuration.security.SSLServerPolicy sslServer
           
 
Fields inherited from class org.apache.cxf.transport.AbstractDestination
endpointInfo, incomingObserver, reference
 
Constructor Summary
AbstractHTTPDestination(org.apache.cxf.Bus b, org.apache.cxf.transport.ConduitInitiator ci, org.apache.cxf.service.model.EndpointInfo ei)
          Constructor
 
Method Summary
protected abstract  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 static java.lang.String getAddressValue(org.apache.cxf.service.model.EndpointInfo ei)
           
 org.apache.cxf.configuration.security.AuthorizationPolicy getAuthorization()
           
 java.lang.String getBeanName()
           
 java.lang.String getContextMatchStrategy()
           
 HTTPServerPolicy getServer()
           
 org.apache.cxf.configuration.security.SSLServerPolicy getSslServer()
           
 boolean isFixedParameterOrder()
           
protected  boolean isOneWay(org.apache.cxf.message.Message message)
           
 void setAuthorization(org.apache.cxf.configuration.security.AuthorizationPolicy authorization)
           
 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 setServer(HTTPServerPolicy server)
           
 void setSslServer(org.apache.cxf.configuration.security.SSLServerPolicy sslServer)
           
protected  void updateResponseHeaders(org.apache.cxf.message.Message message)
           
 
Methods inherited from class org.apache.cxf.transport.AbstractDestination
activate, deactivate, getAddress, getBackChannel, getConduitInitiator, getInbuiltBackChannel, getLogger, getMessageObserver, getTargetReference, markPartialResponse, setMessageObserver, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

server

protected HTTPServerPolicy server

authorization

protected org.apache.cxf.configuration.security.AuthorizationPolicy authorization

sslServer

protected org.apache.cxf.configuration.security.SSLServerPolicy sslServer

contextMatchStrategy

protected java.lang.String contextMatchStrategy

fixedParameterOrder

protected boolean fixedParameterOrder
Constructor Detail

AbstractHTTPDestination

public AbstractHTTPDestination(org.apache.cxf.Bus b,
                               org.apache.cxf.transport.ConduitInitiator ci,
                               org.apache.cxf.service.model.EndpointInfo ei)
                        throws java.io.IOException
Constructor

Parameters:
b - the associated Bus
ci - the associated conduit initiator
ei - the endpoint info of the destination
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)

isOneWay

protected boolean isOneWay(org.apache.cxf.message.Message message)
Parameters:
message - the message under consideration
Returns:
true iff the message has been marked as oneway

copyRequestHeaders

protected abstract 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

getAddressValue

protected static java.lang.String getAddressValue(org.apache.cxf.service.model.EndpointInfo ei)

getBeanName

public java.lang.String getBeanName()
Specified by:
getBeanName in interface org.apache.cxf.configuration.Configurable

getAuthorization

public org.apache.cxf.configuration.security.AuthorizationPolicy getAuthorization()

setAuthorization

public void setAuthorization(org.apache.cxf.configuration.security.AuthorizationPolicy authorization)

getContextMatchStrategy

public java.lang.String getContextMatchStrategy()

setContextMatchStrategy

public void setContextMatchStrategy(java.lang.String contextMatchStrategy)

isFixedParameterOrder

public boolean isFixedParameterOrder()

setFixedParameterOrder

public void setFixedParameterOrder(boolean fixedParameterOrder)

getServer

public HTTPServerPolicy getServer()

setServer

public void setServer(HTTPServerPolicy server)

getSslServer

public org.apache.cxf.configuration.security.SSLServerPolicy getSslServer()

setSslServer

public void setSslServer(org.apache.cxf.configuration.security.SSLServerPolicy sslServer)


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