org.apache.cxf.transport.http
Class AbstractHTTPTransportFactory

java.lang.Object
  extended by org.apache.cxf.transport.AbstractTransportFactory
      extended by org.apache.cxf.transport.http.AbstractHTTPTransportFactory
All Implemented Interfaces:
ConduitInitiator, WSDLEndpointFactory
Direct Known Subclasses:
ClientOnlyHTTPTransportFactory, JettyHTTPTransportFactory, ServletTransportFactory

public abstract class AbstractHTTPTransportFactory
extends AbstractTransportFactory
implements ConduitInitiator, WSDLEndpointFactory

As a ConduitInitiator, this class sets up new HTTPConduits for particular endpoints. TODO: Document WSDLEndpointFactory


Field Summary
protected  java.util.Collection<java.lang.String> activationNamespaces
          This collection contains "activationNamespaces" which is synominous with "transportId"s.
protected  Bus bus
          The CXF Bus which this HTTPTransportFactory is governed.
 
Constructor Summary
AbstractHTTPTransportFactory()
           
 
Method Summary
protected  void configure(java.lang.Object bean)
          This call uses the Configurer from the bus to configure a bean.
protected  void configure(java.lang.Object bean, java.lang.String name, java.lang.String extraName)
           
 EndpointInfo createEndpointInfo(ServiceInfo serviceInfo, BindingInfo b, javax.wsdl.Port port)
           
 void createPortExtensors(EndpointInfo ei, Service service)
           
 Bus getBus()
          This method returns the CXF Bus under which this HTTPTransportFactory is governed.
 Conduit getConduit(EndpointInfo endpointInfo)
          This call creates a new HTTPConduit for the endpoint.
 Conduit getConduit(EndpointInfo endpointInfo, org.apache.cxf.ws.addressing.EndpointReferenceType target)
          This call creates a new HTTP Conduit based on the EndpointInfo and EndpointReferenceType.
 java.util.Set<java.lang.String> getUriPrefixes()
           
 void registerWithBindingManager()
          This call gets called after this class is instantiated by Spring.
 void setActivationNamespaces(java.util.Collection<java.lang.String> ans)
          This call is used by CXF ExtensionManager to inject the activationNamespaces
 void setBus(Bus b)
          This method is used by Spring to inject the bus.
 
Methods inherited from class org.apache.cxf.transport.AbstractTransportFactory
getTransportIds, setTransportIds
 
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.ConduitInitiator
getTransportIds
 

Field Detail

bus

protected Bus bus
The CXF Bus which this HTTPTransportFactory is governed.


activationNamespaces

protected java.util.Collection<java.lang.String> activationNamespaces
This collection contains "activationNamespaces" which is synominous with "transportId"s.

Constructor Detail

AbstractHTTPTransportFactory

public AbstractHTTPTransportFactory()
Method Detail

setBus

public void setBus(Bus b)
This method is used by Spring to inject the bus.

Parameters:
b - The CXF bus.

getBus

public Bus getBus()
This method returns the CXF Bus under which this HTTPTransportFactory is governed.


setActivationNamespaces

public void setActivationNamespaces(java.util.Collection<java.lang.String> ans)
This call is used by CXF ExtensionManager to inject the activationNamespaces

Parameters:
ans - The transport ids.

registerWithBindingManager

@PostConstruct
public void registerWithBindingManager()
This call gets called after this class is instantiated by Spring. It registers itself as a ConduitInitiator and DestinationFactory under the many names that are considered "transportIds" (which are currently named "activationNamespaces").


getConduit

public Conduit getConduit(EndpointInfo endpointInfo)
                   throws java.io.IOException
This call creates a new HTTPConduit for the endpoint. It is equivalent to calling getConduit without an EndpointReferenceType.

Specified by:
getConduit in interface ConduitInitiator
Parameters:
endpointInfo - the endpoint info of the target
Returns:
a suitable new or pre-existing Conduit
Throws:
java.io.IOException

getConduit

public Conduit getConduit(EndpointInfo endpointInfo,
                          org.apache.cxf.ws.addressing.EndpointReferenceType target)
                   throws java.io.IOException
This call creates a new HTTP Conduit based on the EndpointInfo and EndpointReferenceType. TODO: What are the formal constraints on EndpointInfo and EndpointReferenceType values?

Specified by:
getConduit in interface ConduitInitiator
Parameters:
endpointInfo - the endpoint info for a local endpoint on which the the configuration should be based
target - the target EPR
Returns:
a suitable new or pre-existing Conduit
Throws:
java.io.IOException

createEndpointInfo

public EndpointInfo createEndpointInfo(ServiceInfo serviceInfo,
                                       BindingInfo b,
                                       javax.wsdl.Port port)
Specified by:
createEndpointInfo in interface WSDLEndpointFactory

createPortExtensors

public void createPortExtensors(EndpointInfo ei,
                                Service service)
Specified by:
createPortExtensors in interface WSDLEndpointFactory

getUriPrefixes

public java.util.Set<java.lang.String> getUriPrefixes()
Specified by:
getUriPrefixes in interface ConduitInitiator
Overrides:
getUriPrefixes in class AbstractTransportFactory

configure

protected void configure(java.lang.Object bean)
This call uses the Configurer from the bus to configure a bean.

Parameters:
bean -

configure

protected void configure(java.lang.Object bean,
                         java.lang.String name,
                         java.lang.String extraName)


Apache CXF