org.apache.cxf.transport.websocket
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_NAMESPACES
public static final List<String> DEFAULT_NAMESPACES
registry
protected final DestinationRegistry registry
factory
protected final HttpDestinationFactory factory
WebSocketTransportFactory
public WebSocketTransportFactory()
WebSocketTransportFactory
public WebSocketTransportFactory(DestinationRegistry registry)
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
-
configure
protected void configure(Bus bus,
Object bean,
String name,
String extraName)
getConduit
public Conduit getConduit(EndpointInfo endpointInfo,
Bus b)
throws IOException
- Description copied from interface:
ConduitInitiator
- Initiate an outbound Conduit.
- 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,
Bus bus)
throws IOException
- Initiate an outbound Conduit.
- Specified by:
getConduit
in interface ConduitInitiator
- 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:
getDestination
in interface DestinationFactory
- Parameters:
endpointInfo
- the endpoint info of the destination.
- Returns:
- the created Destination.
- Throws:
IOException
getUriPrefixes
public Set<String> getUriPrefixes()
- Specified by:
getUriPrefixes
in interface ConduitInitiator
- Specified by:
getUriPrefixes
in interface DestinationFactory
- Overrides:
getUriPrefixes
in class AbstractTransportFactory
Apache CXF