Apache CXF API

org.apache.cxf.transport.http
Class HTTPTransportFactory

java.lang.Object
  extended by org.apache.cxf.transport.AbstractTransportFactory
      extended by org.apache.cxf.transport.http.HTTPTransportFactory
All Implemented Interfaces:
ConduitInitiator, DestinationFactory, WSDLEndpointFactory
Direct Known Subclasses:
JAXWSHttpSpiTransportFactory

public class HTTPTransportFactory
extends AbstractTransportFactory
implements WSDLEndpointFactory, ConduitInitiator, DestinationFactory


Field Summary
static List<String> DEFAULT_NAMESPACES
           
protected  DestinationRegistry registry
           
 
Fields inherited from class org.apache.cxf.transport.AbstractTransportFactory
bus
 
Constructor Summary
HTTPTransportFactory()
           
HTTPTransportFactory(Bus b)
           
HTTPTransportFactory(Bus b, DestinationRegistry registry)
           
HTTPTransportFactory(DestinationRegistry registry)
           
 
Method Summary
protected  void configure(Object bean)
          This call uses the Configurer from the bus to configure a bean.
protected  void configure(Object bean, String name, String extraName)
           
 EndpointInfo createEndpointInfo(ServiceInfo serviceInfo, BindingInfo b, List<?> ees)
           
 void createPortExtensors(EndpointInfo ei, Service service)
           
protected  HTTPConduitFactory findFactory(EndpointInfo endpointInfo)
           
 Conduit getConduit(EndpointInfo endpointInfo)
          This call creates a new HTTPConduit for the endpoint.
 Conduit getConduit(EndpointInfo endpointInfo, EndpointReferenceType target)
          This call creates a new HTTP Conduit based on the EndpointInfo and EndpointReferenceType.
 Destination getDestination(EndpointInfo endpointInfo)
          Create a destination.
 DestinationRegistry getRegistry()
           
 Set<String> getUriPrefixes()
           
 void setActivationNamespaces(Collection<String> ans)
          This call is used by CXF ExtensionManager to inject the activationNamespaces
 void setBus(Bus b)
           
 
Methods inherited from class org.apache.cxf.transport.AbstractTransportFactory
getBus, getTransportIds, register, setTransportIds, unregister
 
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
 
Methods inherited from interface org.apache.cxf.transport.DestinationFactory
getTransportIds
 

Field Detail

DEFAULT_NAMESPACES

public static final List<String> DEFAULT_NAMESPACES

registry

protected final DestinationRegistry registry
Constructor Detail

HTTPTransportFactory

public HTTPTransportFactory()

HTTPTransportFactory

public HTTPTransportFactory(Bus b)

HTTPTransportFactory

public HTTPTransportFactory(Bus b,
                            DestinationRegistry registry)

HTTPTransportFactory

public HTTPTransportFactory(DestinationRegistry registry)
Method Detail

setBus

public void setBus(Bus b)
Overrides:
setBus in class AbstractTransportFactory

getRegistry

public DestinationRegistry getRegistry()

setActivationNamespaces

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

Parameters:
ans - The transport ids.

createEndpointInfo

public EndpointInfo createEndpointInfo(ServiceInfo serviceInfo,
                                       BindingInfo b,
                                       List<?> ees)
Specified by:
createEndpointInfo in interface WSDLEndpointFactory

createPortExtensors

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

getUriPrefixes

public Set<String> getUriPrefixes()
Specified by:
getUriPrefixes in interface ConduitInitiator
Specified by:
getUriPrefixes in interface DestinationFactory
Overrides:
getUriPrefixes in class AbstractTransportFactory

configure

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

Parameters:
bean -

configure

protected void configure(Object bean,
                         String name,
                         String extraName)

getConduit

public Conduit getConduit(EndpointInfo endpointInfo)
                   throws 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:
IOException

getConduit

public Conduit getConduit(EndpointInfo endpointInfo,
                          EndpointReferenceType target)
                   throws 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:
IOException

findFactory

protected HTTPConduitFactory findFactory(EndpointInfo endpointInfo)

getDestination

public Destination getDestination(EndpointInfo endpointInfo)
                           throws IOException
Description copied from interface: DestinationFactory
Create a destination.

Specified by:
getDestination in interface DestinationFactory
Parameters:
endpointInfo - the endpoint info of the destination.
Returns:
the created Destination.
Throws:
IOException

Apache CXF API

Apache CXF