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:
org.apache.cxf.transport.ConduitInitiator, org.apache.cxf.transport.DestinationFactory, org.apache.cxf.wsdl11.WSDLEndpointFactory

public class HTTPTransportFactory
extends org.apache.cxf.transport.AbstractTransportFactory
implements org.apache.cxf.wsdl11.WSDLEndpointFactory, org.apache.cxf.transport.ConduitInitiator, org.apache.cxf.transport.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(org.apache.cxf.Bus b)
           
HTTPTransportFactory(org.apache.cxf.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)
           
 org.apache.cxf.service.model.EndpointInfo createEndpointInfo(org.apache.cxf.service.model.ServiceInfo serviceInfo, org.apache.cxf.service.model.BindingInfo b, List<?> ees)
           
 void createPortExtensors(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.Service service)
           
 org.apache.cxf.transport.Conduit getConduit(org.apache.cxf.service.model.EndpointInfo endpointInfo)
          This call creates a new HTTPConduit for the endpoint.
 org.apache.cxf.transport.Conduit getConduit(org.apache.cxf.service.model.EndpointInfo endpointInfo, org.apache.cxf.ws.addressing.EndpointReferenceType target)
          This call creates a new HTTP Conduit based on the EndpointInfo and EndpointReferenceType.
 org.apache.cxf.transport.Destination getDestination(org.apache.cxf.service.model.EndpointInfo endpointInfo)
           
 DestinationRegistry getRegistry()
           
 Set<String> getUriPrefixes()
           
 void setActivationNamespaces(Collection<String> ans)
          This call is used by CXF ExtensionManager to inject the activationNamespaces
 void setBus(org.apache.cxf.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(org.apache.cxf.Bus b)

HTTPTransportFactory

public HTTPTransportFactory(org.apache.cxf.Bus b,
                            DestinationRegistry registry)

HTTPTransportFactory

public HTTPTransportFactory(DestinationRegistry registry)
Method Detail

setBus

public void setBus(org.apache.cxf.Bus b)
Overrides:
setBus in class org.apache.cxf.transport.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 org.apache.cxf.service.model.EndpointInfo createEndpointInfo(org.apache.cxf.service.model.ServiceInfo serviceInfo,
                                                                    org.apache.cxf.service.model.BindingInfo b,
                                                                    List<?> ees)
Specified by:
createEndpointInfo in interface org.apache.cxf.wsdl11.WSDLEndpointFactory

createPortExtensors

public void createPortExtensors(org.apache.cxf.service.model.EndpointInfo ei,
                                org.apache.cxf.service.Service service)
Specified by:
createPortExtensors in interface org.apache.cxf.wsdl11.WSDLEndpointFactory

getUriPrefixes

public Set<String> getUriPrefixes()
Specified by:
getUriPrefixes in interface org.apache.cxf.transport.ConduitInitiator
Specified by:
getUriPrefixes in interface org.apache.cxf.transport.DestinationFactory
Overrides:
getUriPrefixes in class org.apache.cxf.transport.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 org.apache.cxf.transport.Conduit getConduit(org.apache.cxf.service.model.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 org.apache.cxf.transport.ConduitInitiator
Throws:
IOException

getConduit

public org.apache.cxf.transport.Conduit getConduit(org.apache.cxf.service.model.EndpointInfo endpointInfo,
                                                   org.apache.cxf.ws.addressing.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 org.apache.cxf.transport.ConduitInitiator
Throws:
IOException

getDestination

public org.apache.cxf.transport.Destination getDestination(org.apache.cxf.service.model.EndpointInfo endpointInfo)
                                                    throws IOException
Specified by:
getDestination in interface org.apache.cxf.transport.DestinationFactory
Throws:
IOException


Apache CXF