Package org.jboss.as.remoting
Class RemotingHttpUpgradeService
- java.lang.Object
-
- org.jboss.as.remoting.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 Summary
Fields Modifier and Type Field Description static org.jboss.msc.service.ServiceNameHTTP_UPGRADE_REGISTRYBase service name for this HTTP Upgrade refiststatic StringJBOSS_REMOTINGstatic StringMAGIC_NUMBERMagic number used in the handshake.static StringSEC_JBOSS_REMOTING_ACCEPTstatic StringSEC_JBOSS_REMOTING_KEYstatic org.jboss.msc.service.ServiceNameUPGRADE_SERVICE_NAME
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidinstallServices(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)voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Field Detail
-
JBOSS_REMOTING
public static final String JBOSS_REMOTING
- See Also:
- Constant Field Values
-
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
-
SEC_JBOSS_REMOTING_KEY
public static final String SEC_JBOSS_REMOTING_KEY
- See Also:
- Constant Field Values
-
SEC_JBOSS_REMOTING_ACCEPT
public static final String SEC_JBOSS_REMOTING_ACCEPT
- 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:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service
-
-