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:
org.apache.cxf.transport.ConduitInitiator,org.apache.cxf.transport.DestinationFactory
public class HTTPTransportFactory extends org.apache.cxf.transport.AbstractTransportFactory implements org.apache.cxf.transport.ConduitInitiator, org.apache.cxf.transport.DestinationFactory
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>DEFAULT_NAMESPACESprotected DestinationRegistryregistry
-
Constructor Summary
Constructors Modifier Constructor Description HTTPTransportFactory()protectedHTTPTransportFactory(List<String> transportIds, DestinationRegistry registry)HTTPTransportFactory(DestinationRegistry registry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure(org.apache.cxf.Bus b, Object bean)This call uses the Configurer from the bus to configure a bean.protected voidconfigure(org.apache.cxf.Bus bus, Object bean, String name, String extraName)org.apache.cxf.service.model.EndpointInfocreateEndpointInfo(org.apache.cxf.service.model.ServiceInfo serviceInfo, org.apache.cxf.service.model.BindingInfo b, List<?> ees)voidcreatePortExtensors(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.Service service)protected HTTPConduitFactoryfindFactory(org.apache.cxf.service.model.EndpointInfo endpointInfo, org.apache.cxf.Bus bus)org.apache.cxf.transport.ConduitgetConduit(org.apache.cxf.service.model.EndpointInfo endpointInfo, org.apache.cxf.Bus bus)This call creates a new HTTPConduit for the endpoint.org.apache.cxf.transport.ConduitgetConduit(org.apache.cxf.service.model.EndpointInfo endpointInfo, org.apache.cxf.ws.addressing.EndpointReferenceType target, org.apache.cxf.Bus bus)This call creates a new HTTP Conduit based on the EndpointInfo and EndpointReferenceType.org.apache.cxf.transport.DestinationgetDestination(org.apache.cxf.service.model.EndpointInfo endpointInfo, org.apache.cxf.Bus bus)DestinationRegistrygetRegistry()Set<String>getUriPrefixes()static booleanisForceURLConnectionConduit()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
-
-
-
-
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 org.apache.cxf.service.model.EndpointInfo createEndpointInfo(org.apache.cxf.service.model.ServiceInfo serviceInfo, org.apache.cxf.service.model.BindingInfo b, List<?> ees)
-
createPortExtensors
public void createPortExtensors(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.Service service)
-
getUriPrefixes
public Set<String> getUriPrefixes()
- Specified by:
getUriPrefixesin interfaceorg.apache.cxf.transport.ConduitInitiator- Specified by:
getUriPrefixesin interfaceorg.apache.cxf.transport.DestinationFactory- Overrides:
getUriPrefixesin classorg.apache.cxf.transport.AbstractTransportFactory
-
configure
protected void configure(org.apache.cxf.Bus b, Object bean)This call uses the Configurer from the bus to configure a bean.- Parameters:
bean-
-
configure
protected void configure(org.apache.cxf.Bus bus, Object bean, String name, String extraName)
-
getConduit
public org.apache.cxf.transport.Conduit getConduit(org.apache.cxf.service.model.EndpointInfo endpointInfo, org.apache.cxf.Bus bus) throws IOExceptionThis call creates a new HTTPConduit for the endpoint. It is equivalent to calling getConduit without an EndpointReferenceType.- Specified by:
getConduitin interfaceorg.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, org.apache.cxf.Bus bus) throws IOExceptionThis 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 interfaceorg.apache.cxf.transport.ConduitInitiator- Throws:
IOException
-
findFactory
protected HTTPConduitFactory findFactory(org.apache.cxf.service.model.EndpointInfo endpointInfo, org.apache.cxf.Bus bus)
-
getDestination
public org.apache.cxf.transport.Destination getDestination(org.apache.cxf.service.model.EndpointInfo endpointInfo, org.apache.cxf.Bus bus) throws IOException- Specified by:
getDestinationin interfaceorg.apache.cxf.transport.DestinationFactory- Throws:
IOException
-
isForceURLConnectionConduit
public static boolean isForceURLConnectionConduit()
-
-