Package org.jboss.as.remoting
Class RemotingHttpUpgradeService
java.lang.Object
org.jboss.as.remoting.RemotingHttpUpgradeService
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionstatic final org.jboss.msc.service.ServiceNameBase service name for this HTTP Upgrade refiststatic final Stringstatic final StringMagic number used in the handshake.static final Stringstatic final Stringstatic final org.jboss.msc.service.ServiceNameFields inherited from interface org.jboss.msc.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionRemotingHttpUpgradeService(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
Modifier and TypeMethodDescriptionstatic 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 Details
-
JBOSS_REMOTING
- See Also:
-
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:
-
SEC_JBOSS_REMOTING_KEY
- See Also:
-
SEC_JBOSS_REMOTING_ACCEPT
- See Also:
-
HTTP_UPGRADE_REGISTRY
public static final org.jboss.msc.service.ServiceName HTTP_UPGRADE_REGISTRYBase service name for this HTTP Upgrade refist -
UPGRADE_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName UPGRADE_SERVICE_NAME
-
-
Constructor Details
-
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 Details
-
installServices
-
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
-