org.apache.cxf.transport.http
Class HTTPConduit

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

public class HTTPConduit
extends HTTPConduitConfigBean
implements org.apache.cxf.transport.Conduit

HTTP Conduit implementation.


Nested Class Summary
protected  class HTTPConduit.DecoupledDestination
          Represented decoupled response endpoint.
 
Field Summary
static java.lang.String HTTP_CONNECTION
           
static java.lang.String HTTP_DECOUPLED_ENDPOINT
          REVISIT: temporary mechanism to allow decoupled response endpoint to be configured, pending the maturation on the real config model
 
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, ServerEngine eng)
          Constructor, allowing subsititution of connnection factory and decoupled engine.
 
Method Summary
 void close()
          Close the conduit
 void close(org.apache.cxf.message.Message msg)
           
protected  void flushHeaders(org.apache.cxf.message.Message message)
          Flush the headers onto the output stream.
 org.apache.cxf.transport.Destination getBackChannel()
          Retreive the back-channel Destination.
 java.lang.String getBeanName()
           
 org.apache.cxf.ws.addressing.EndpointReferenceType getTarget()
           
protected  java.net.URL getURL()
           
protected  void retrieveConnectionFactory()
           
 void send(org.apache.cxf.message.Message message)
          Send an outbound message.
 void setMessageObserver(org.apache.cxf.transport.MessageObserver observer)
          Register a message observer for incoming messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_CONNECTION

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

HTTP_DECOUPLED_ENDPOINT

public static final java.lang.String HTTP_DECOUPLED_ENDPOINT
REVISIT: temporary mechanism to allow decoupled response endpoint to be configured, pending the maturation on the real config model

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,
                   ServerEngine eng)
            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
eng - the decoupled engine
Throws:
java.io.IOException
Method Detail

retrieveConnectionFactory

protected void retrieveConnectionFactory()

getBeanName

public java.lang.String getBeanName()

setMessageObserver

public void setMessageObserver(org.apache.cxf.transport.MessageObserver observer)
Register a message observer for incoming messages.

Specified by:
setMessageObserver in interface org.apache.cxf.transport.Observable
Parameters:
observer - the observer to notify on receipt of incoming

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

getTarget

public org.apache.cxf.ws.addressing.EndpointReferenceType getTarget()
Specified by:
getTarget in interface org.apache.cxf.transport.Conduit
Returns:
the reference associated with the target Destination

getBackChannel

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

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

close

public void close(org.apache.cxf.message.Message msg)
           throws java.io.IOException
Specified by:
close in interface org.apache.cxf.transport.Conduit
Throws:
java.io.IOException

close

public void close()
Close the conduit

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

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


Copyright © 2006 Apache Software Foundation. All Rights Reserved.