Class WebSocketTransportFactory
- java.lang.Object
-
- org.apache.cxf.transport.AbstractTransportFactory
-
- org.apache.cxf.transport.websocket.WebSocketTransportFactory
-
- All Implemented Interfaces:
ConduitInitiator,DestinationFactory
public class WebSocketTransportFactory extends AbstractTransportFactory implements ConduitInitiator, DestinationFactory
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>DEFAULT_NAMESPACESprotected HttpDestinationFactoryfactoryprotected DestinationRegistryregistry-
Fields inherited from class org.apache.cxf.transport.AbstractTransportFactory
PREFERRED_TRANSPORT_ID
-
-
Constructor Summary
Constructors Constructor Description WebSocketTransportFactory()WebSocketTransportFactory(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)ConduitgetConduit(EndpointInfo endpointInfo, Bus b)Initiate an outbound Conduit.ConduitgetConduit(EndpointInfo endpointInfo, org.apache.cxf.ws.addressing.EndpointReferenceType target, Bus bus)Initiate an outbound Conduit.DestinationgetDestination(EndpointInfo endpointInfo, Bus bus)Create a destination.DestinationRegistrygetRegistry()Set<String>getUriPrefixes()-
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 final DestinationRegistry registry
-
factory
protected final HttpDestinationFactory factory
-
-
Constructor Detail
-
WebSocketTransportFactory
public WebSocketTransportFactory()
-
WebSocketTransportFactory
public WebSocketTransportFactory(DestinationRegistry registry)
-
-
Method Detail
-
getRegistry
public DestinationRegistry getRegistry()
-
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 b) throws IOException
Description copied from interface:ConduitInitiatorInitiate an outbound Conduit.- 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
Initiate an outbound Conduit.- 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
-
getDestination
public Destination getDestination(EndpointInfo endpointInfo, Bus bus) throws IOException
Create a destination.- Specified by:
getDestinationin interfaceDestinationFactory- Parameters:
endpointInfo- the endpoint info of the destination.- Returns:
- the created Destination.
- Throws:
IOException
-
getUriPrefixes
public Set<String> getUriPrefixes()
- Specified by:
getUriPrefixesin interfaceConduitInitiator- Specified by:
getUriPrefixesin interfaceDestinationFactory- Overrides:
getUriPrefixesin classAbstractTransportFactory
-
-