Package com.attivio.transport
Class ClientTransportRegistry
- java.lang.Object
-
- com.attivio.transport.ClientTransportRegistry
-
public class ClientTransportRegistry extends java.lang.ObjectRegistry for all available client transports. Client transports are responsible for calling registerTransport in order to be picked up by by URI.
-
-
Constructor Summary
Constructors Constructor Description ClientTransportRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClientTransport<?>getClientTransport(java.lang.String protocol)Get a client transport by protocol or null if it does not exist.static voidregisterTransport(java.lang.String protocol, ClientTransport<?> transport)Register a new client transport with the system so that it may be looked up later on.static voidresetTransports()Clears the transport cache and re-registers the http and https transportsstatic voidunregisterTransport(java.lang.String protocol)Unregisters the client transport.
-
-
-
Method Detail
-
getClientTransport
public static ClientTransport<?> getClientTransport(java.lang.String protocol)
Get a client transport by protocol or null if it does not exist. Theprotocolparameter may be a uri in which case the protocol will be obtained from it.- Parameters:
protocol- the protocol to lookup.
-
registerTransport
public static void registerTransport(java.lang.String protocol, ClientTransport<?> transport)Register a new client transport with the system so that it may be looked up later on.
-
unregisterTransport
public static void unregisterTransport(java.lang.String protocol)
Unregisters the client transport.
-
resetTransports
public static void resetTransports()
Clears the transport cache and re-registers the http and https transports
-
-