Class RemotingHttpUpgradeService

  • All Implemented Interfaces:
    org.jboss.msc.Service

    public class RemotingHttpUpgradeService
    extends Object
    implements org.jboss.msc.Service
    Service that registers a HTTP upgrade handler to enable remoting to be used via http upgrade.
    Author:
    Stuart Douglas, Richard Opalka
    • Field Detail

      • MAGIC_NUMBER

        public static final String MAGIC_NUMBER
        Magic number used in the handshake.

        The handshake borrows heavily from the web socket protocol, but uses different header names and a different magic number.

        See Also:
        Constant Field Values
      • HTTP_UPGRADE_REGISTRY

        public static final org.jboss.msc.service.ServiceName HTTP_UPGRADE_REGISTRY
        Base service name for this HTTP Upgrade refist
      • UPGRADE_SERVICE_NAME

        public static final org.jboss.msc.service.ServiceName UPGRADE_SERVICE_NAME
    • Constructor Detail

      • RemotingHttpUpgradeService

        public RemotingHttpUpgradeService​(Consumer<RemotingHttpUpgradeService> serviceConsumer,
                                          Supplier<io.undertow.server.handlers.ChannelUpgradeHandler> upgradeRegistrySupplier,
                                          Supplier<io.undertow.server.ListenerRegistry> listenerRegistrySupplier,
                                          Supplier<org.jboss.remoting3.Endpoint> endpointSupplier,
                                          Supplier<org.wildfly.security.auth.server.SaslAuthenticationFactory> saslAuthenticationFactorySupplier,
                                          String remotingConnectorName,
                                          String httpConnectorName,
                                          String endpointName,
                                          org.xnio.OptionMap connectorPropertiesOptionMap)
    • Method Detail

      • installServices

        public static void installServices​(org.jboss.as.controller.OperationContext context,
                                           String remotingConnectorName,
                                           String httpConnectorName,
                                           org.jboss.msc.service.ServiceName endpointName,
                                           org.xnio.OptionMap connectorPropertiesOptionMap,
                                           org.jboss.msc.service.ServiceName saslAuthenticationFactory)
      • start

        public void start​(org.jboss.msc.service.StartContext context)
                   throws org.jboss.msc.service.StartException
        Specified by:
        start in interface org.jboss.msc.Service
        Throws:
        org.jboss.msc.service.StartException
      • stop

        public void stop​(org.jboss.msc.service.StopContext context)
        Specified by:
        stop in interface org.jboss.msc.Service