Class NetworkModule


  • public final class NetworkModule
    extends java.lang.Object
    A module to handle registering and binding all network related classes.
    • Field Detail

      • TRANSPORT_TYPE_KEY

        public static final java.lang.String TRANSPORT_TYPE_KEY
        See Also:
        Constant Field Values
      • HTTP_TYPE_DEFAULT_KEY

        public static final java.lang.String HTTP_TYPE_DEFAULT_KEY
        See Also:
        Constant Field Values
      • TRANSPORT_TYPE_DEFAULT_KEY

        public static final java.lang.String TRANSPORT_TYPE_DEFAULT_KEY
        See Also:
        Constant Field Values
      • TRANSPORT_DEFAULT_TYPE_SETTING

        public static final Setting<java.lang.String> TRANSPORT_DEFAULT_TYPE_SETTING
      • HTTP_DEFAULT_TYPE_SETTING

        public static final Setting<java.lang.String> HTTP_DEFAULT_TYPE_SETTING
      • HTTP_TYPE_SETTING

        public static final Setting<java.lang.String> HTTP_TYPE_SETTING
      • HTTP_ENABLED

        public static final Setting<java.lang.Boolean> HTTP_ENABLED
      • TRANSPORT_TYPE_SETTING

        public static final Setting<java.lang.String> TRANSPORT_TYPE_SETTING
    • Method Detail

      • isTransportClient

        public boolean isTransportClient()
      • getHttpServerTransportSupplier

        public java.util.function.Supplier<HttpServerTransport> getHttpServerTransportSupplier()
      • isHttpEnabled

        public boolean isHttpEnabled()
      • getTransportSupplier

        public java.util.function.Supplier<Transport> getTransportSupplier()
      • getTransportInterceptor

        public TransportInterceptor getTransportInterceptor()
        Returns a composite TransportInterceptor containing all registered interceptors
        See Also:
        registerTransportInterceptor(TransportInterceptor)