Class ClientTransportRegistry


  • public class ClientTransportRegistry
    extends java.lang.Object
    Registry for all available client transports. Client transports are responsible for calling registerTransport in order to be picked up by by URI.
    • 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 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.
      static void resetTransports()
      Clears the transport cache and re-registers the http and https transports
      static void unregisterTransport​(java.lang.String protocol)
      Unregisters the client transport.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClientTransportRegistry

        public ClientTransportRegistry()
    • Method Detail

      • getClientTransport

        public static ClientTransport<?> getClientTransport​(java.lang.String protocol)
        Get a client transport by protocol or null if it does not exist. The protocol parameter 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