org.apache.cxf.transport.http
Class HTTPConduit

java.lang.Object
  extended by org.apache.cxf.transport.AbstractConduit
      extended by org.apache.cxf.transport.http.HTTPConduit
All Implemented Interfaces:
org.apache.cxf.configuration.Configurable, org.apache.cxf.transport.Conduit, org.apache.cxf.transport.Observable

public class HTTPConduit
extends org.apache.cxf.transport.AbstractConduit
implements org.apache.cxf.configuration.Configurable

HTTP Conduit implementation.


Nested Class Summary
protected  class HTTPConduit.InterposedMessageObserver
          Used to set appropriate message properties, exchange etc.
 
Field Summary
static java.lang.String HTTP_CONNECTION
           
static java.lang.String HTTP_REQUEST
           
static java.lang.String HTTP_RESPONSE
           
 
Fields inherited from class org.apache.cxf.transport.AbstractConduit
incomingObserver, target
 
Constructor Summary
HTTPConduit(org.apache.cxf.Bus b, org.apache.cxf.service.model.EndpointInfo ei)
          Constructor
HTTPConduit(org.apache.cxf.Bus b, org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.ws.addressing.EndpointReferenceType t)
          Constructor
HTTPConduit(org.apache.cxf.Bus b, org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.ws.addressing.EndpointReferenceType t, URLConnectionFactory factory)
          Constructor, allowing subsititution of connnection factory and decoupled engine.
 
Method Summary
 void close()
          Close the conduit
protected  void flushHeaders(org.apache.cxf.message.Message message)
          Flush the headers onto the output stream.
 org.apache.cxf.configuration.security.AuthorizationPolicy getAuthorization()
           
 org.apache.cxf.transport.Destination getBackChannel()
          Retreive the back-channel Destination.
 java.lang.String getBeanName()
           
 HTTPClientPolicy getClient()
           
protected  org.apache.cxf.transport.MessageObserver getDecoupledObserver()
           
protected  java.util.logging.Logger getLogger()
           
 org.apache.cxf.configuration.security.AuthorizationPolicy getProxyAuthorization()
           
 org.apache.cxf.configuration.security.SSLClientPolicy getSslClient()
           
protected  java.net.URL getURL()
           
protected  void retrieveConnectionFactory()
          Post-configure retreival of connection factory.
 void send(org.apache.cxf.message.Message message)
          Send an outbound message.
 void setAuthorization(org.apache.cxf.configuration.security.AuthorizationPolicy authorization)
           
 void setClient(HTTPClientPolicy client)
           
 void setProxyAuthorization(org.apache.cxf.configuration.security.AuthorizationPolicy proxyAuthorization)
           
 void setSslClient(org.apache.cxf.configuration.security.SSLClientPolicy sslClient)
           
 
Methods inherited from class org.apache.cxf.transport.AbstractConduit
close, getMessageObserver, getTarget, setMessageObserver
 
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

HTTP_CONNECTION

public static final java.lang.String HTTP_CONNECTION
See Also:
Constant Field Values
Constructor Detail

HTTPConduit

public HTTPConduit(org.apache.cxf.Bus b,
                   org.apache.cxf.service.model.EndpointInfo ei)
            throws java.io.IOException
Constructor

Parameters:
b - the associated Bus
ei - the endpoint info of the initiator
Throws:
java.io.IOException

HTTPConduit

public HTTPConduit(org.apache.cxf.Bus b,
                   org.apache.cxf.service.model.EndpointInfo ei,
                   org.apache.cxf.ws.addressing.EndpointReferenceType t)
            throws java.io.IOException
Constructor

Parameters:
b - the associated Bus
ei - the endpoint info of the initiator
t - the endpoint reference of the target
Throws:
java.io.IOException

HTTPConduit

public HTTPConduit(org.apache.cxf.Bus b,
                   org.apache.cxf.service.model.EndpointInfo ei,
                   org.apache.cxf.ws.addressing.EndpointReferenceType t,
                   URLConnectionFactory factory)
            throws java.io.IOException
Constructor, allowing subsititution of connnection factory and decoupled engine.

Parameters:
b - the associated Bus
ei - the endpoint info of the initiator
t - the endpoint reference of the target
factory - the URL connection factory
Throws:
java.io.IOException
Method Detail

getLogger

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

retrieveConnectionFactory

protected void retrieveConnectionFactory()
Post-configure retreival of connection factory.


send

public void send(org.apache.cxf.message.Message message)
          throws java.io.IOException
Send an outbound message.

Specified by:
send in interface org.apache.cxf.transport.Conduit
Parameters:
message - the message to be sent.
Throws:
java.io.IOException

getBackChannel

public org.apache.cxf.transport.Destination getBackChannel()
Retreive the back-channel Destination.

Specified by:
getBackChannel in interface org.apache.cxf.transport.Conduit
Overrides:
getBackChannel in class org.apache.cxf.transport.AbstractConduit
Returns:
the backchannel Destination (or null if the backchannel is built-in)

close

public void close()
Close the conduit

Specified by:
close in interface org.apache.cxf.transport.Conduit
Overrides:
close in class org.apache.cxf.transport.AbstractConduit

getURL

protected java.net.URL getURL()
Returns:
the encapsulated URL

flushHeaders

protected void flushHeaders(org.apache.cxf.message.Message message)
                     throws java.io.IOException
Flush the headers onto the output stream.

Parameters:
message - the outbound message
Throws:
java.io.IOException

getDecoupledObserver

protected org.apache.cxf.transport.MessageObserver getDecoupledObserver()
Returns:
the decoupled observer

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)

getClient

public HTTPClientPolicy getClient()

setClient

public void setClient(HTTPClientPolicy client)

getProxyAuthorization

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

setProxyAuthorization

public void setProxyAuthorization(org.apache.cxf.configuration.security.AuthorizationPolicy proxyAuthorization)

getSslClient

public org.apache.cxf.configuration.security.SSLClientPolicy getSslClient()

setSslClient

public void setSslClient(org.apache.cxf.configuration.security.SSLClientPolicy sslClient)


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