Package org.apache.cxf.transport.http
Class HTTPTransportFactory
- java.lang.Object
-
- org.apache.cxf.transport.AbstractTransportFactory
-
- org.apache.cxf.transport.http.HTTPTransportFactory
-
- All Implemented Interfaces:
ConduitInitiator,DestinationFactory
public class HTTPTransportFactory extends AbstractTransportFactory implements ConduitInitiator, DestinationFactory
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>DEFAULT_NAMESPACESprotected DestinationRegistryregistry-
Fields inherited from class org.apache.cxf.transport.AbstractTransportFactory
PREFERRED_TRANSPORT_ID
-
-
Constructor Summary
Constructors Modifier Constructor Description HTTPTransportFactory()protectedHTTPTransportFactory(List<String> transportIds, DestinationRegistry registry)HTTPTransportFactory(DestinationRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure(Bus b, Object bean)This call uses the Configurer from the bus to configure a bean.protected voidconfigure(Bus bus, Object bean, String name, String extraName)EndpointInfocreateEndpointInfo(ServiceInfo serviceInfo, BindingInfo b, List<?> ees)voidcreatePortExtensors(EndpointInfo ei, Service service)protected HTTPConduitFactoryfindFactory(EndpointInfo endpointInfo, Bus bus)ConduitgetConduit(EndpointInfo endpointInfo, Bus bus)This call creates a new HTTPConduit for the endpoint.ConduitgetConduit(EndpointInfo endpointInfo, org.apache.cxf.ws.addressing.EndpointReferenceType target, Bus bus)This call creates a new HTTP Conduit based on the EndpointInfo and EndpointReferenceType.DestinationgetDestination(EndpointInfo endpointInfo, Bus bus)Create a destination.DestinationRegistrygetRegistry()Set<String>getUriPrefixes()voidsetActivationNamespaces(Collection<String> ans)This call is used by CXF ExtensionManager to inject the activationNamespacesvoidsetRegistry(DestinationRegistry newRegistry)-
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
-
Methods inherited from interface org.apache.cxf.transport.DestinationFactory
getTransportIds
-
-
-
-
Field Detail
-
registry
protected DestinationRegistry registry
-
-
Constructor Detail
-
HTTPTransportFactory
public HTTPTransportFactory()
-
HTTPTransportFactory
public HTTPTransportFactory(DestinationRegistry registry)
-
HTTPTransportFactory
protected HTTPTransportFactory(List<String> transportIds, DestinationRegistry registry)
-
-
Method Detail
-
getRegistry
public DestinationRegistry getRegistry()
-
setRegistry
public void setRegistry(DestinationRegistry newRegistry)
-
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)
-
createPortExtensors
public void createPortExtensors(EndpointInfo ei, Service service)
-
getUriPrefixes
public Set<String> getUriPrefixes()
- Specified by:
getUriPrefixesin interfaceConduitInitiator- Specified by:
getUriPrefixesin interfaceDestinationFactory- Overrides:
getUriPrefixesin classAbstractTransportFactory
-
configure
protected void configure(Bus b, Object bean)
This call uses the Configurer from the bus to configure a bean.- Parameters:
bean-
-
getConduit
public Conduit getConduit(EndpointInfo endpointInfo, Bus bus) throws IOException
This call creates a new HTTPConduit for the endpoint. It is equivalent to calling getConduit without an EndpointReferenceType.- Specified by:
getConduitin interfaceConduitInitiator- Parameters:
endpointInfo- the endpoint info of the target- Returns:
- a suitable new or pre-existing Conduit
- Throws:
IOException
-
getConduit
public Conduit getConduit(EndpointInfo endpointInfo, org.apache.cxf.ws.addressing.EndpointReferenceType target, Bus bus) 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:
getConduitin interfaceConduitInitiator- Parameters:
endpointInfo- the endpoint info for a local endpoint on which the the configuration should be basedtarget- the target EPR- Returns:
- a suitable new or pre-existing Conduit
- Throws:
IOException
-
findFactory
protected HTTPConduitFactory findFactory(EndpointInfo endpointInfo, Bus bus)
-
getDestination
public Destination getDestination(EndpointInfo endpointInfo, Bus bus) throws IOException
Description copied from interface:DestinationFactoryCreate a destination.- Specified by:
getDestinationin interfaceDestinationFactory- Parameters:
endpointInfo- the endpoint info of the destination.- Returns:
- the created Destination.
- Throws:
IOException
-
-