Package org.wildfly.extension.undertow
Class HttpListenerService
java.lang.Object
org.wildfly.extension.undertow.ListenerService
org.wildfly.extension.undertow.HttpListenerService
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<UndertowListener>,org.jboss.msc.value.Value<UndertowListener>,UndertowListener
- Direct Known Subclasses:
HttpsListenerService
- Author:
- Stuart Douglas, Tomaz Cerar, Richard Opalka
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.jboss.as.server.deployment.DelegatingSupplier<io.undertow.server.ListenerRegistry>Deprecated.Replaced by HTTP_UPGRADE_REGISTRY.getCapabilityServiceName()Fields inherited from class org.wildfly.extension.undertow.ListenerService
binding, bufferPool, commonOptions, listenerOptions, openListener, redirectSocket, serverService, serviceConsumer, socketOptions, workerFields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionHttpListenerService(Consumer<ListenerService> serviceConsumer, org.jboss.as.controller.PathAddress address, String serverName, org.xnio.OptionMap listenerOptions, org.xnio.OptionMap socketOptions, boolean certificateForwarding, boolean proxyAddressForwarding, boolean proxyProtocol) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected io.undertow.server.OpenListenerorg.jboss.as.server.deployment.DelegatingSupplier<io.undertow.server.ListenerRegistry>Returns the transport protocol.getValue()booleanisSecure()Returns true if the listener is secure.protected voidpreStart(org.jboss.msc.service.StartContext context) protected voidstartListening(org.xnio.XnioWorker worker, InetSocketAddress socketAddress, org.xnio.ChannelListener<org.xnio.channels.AcceptingChannel<org.xnio.StreamConnection>> acceptListener) protected voidprotected voidMethods inherited from class org.wildfly.extension.undertow.ListenerService
getBinding, getBufferPool, getName, getOpenListener, getRedirectSocket, getServer, getServerService, getSocketBinding, getSsl, getSSLOptions, getUndertowService, getWorker, isEnabled, isShutdown, registerBinding, setEnabled, start, stop
-
Field Details
-
httpListenerRegistry
@Deprecated protected final org.jboss.as.server.deployment.DelegatingSupplier<io.undertow.server.ListenerRegistry> httpListenerRegistryDeprecated.Replaced by HTTP_UPGRADE_REGISTRY.getCapabilityServiceName()
-
-
Constructor Details
-
HttpListenerService
public HttpListenerService(Consumer<ListenerService> serviceConsumer, org.jboss.as.controller.PathAddress address, String serverName, org.xnio.OptionMap listenerOptions, org.xnio.OptionMap socketOptions, boolean certificateForwarding, boolean proxyAddressForwarding, boolean proxyProtocol)
-
-
Method Details
-
createOpenListener
protected io.undertow.server.OpenListener createOpenListener()- Specified by:
createOpenListenerin classListenerService
-
isSecure
public boolean isSecure()Description copied from interface:UndertowListenerReturns true if the listener is secure. In general this will be true for HTTPS listeners, however other listener types may have been explicitly marked as secure.- Specified by:
isSecurein interfaceUndertowListener- Specified by:
isSecurein classListenerService- Returns:
trueif the listener is considered security
-
preStart
protected void preStart(org.jboss.msc.service.StartContext context) - Specified by:
preStartin classListenerService
-
startListening
protected void startListening(org.xnio.XnioWorker worker, InetSocketAddress socketAddress, org.xnio.ChannelListener<org.xnio.channels.AcceptingChannel<org.xnio.StreamConnection>> acceptListener) throws IOException - Throws:
IOException
-
cleanFailedStart
protected void cleanFailedStart()- Specified by:
cleanFailedStartin classListenerService
-
unregisterBinding
protected void unregisterBinding()- Overrides:
unregisterBindingin classListenerService
-
stopListening
protected void stopListening() -
getValue
-
getHttpListenerRegistry
public org.jboss.as.server.deployment.DelegatingSupplier<io.undertow.server.ListenerRegistry> getHttpListenerRegistry() -
getProtocol
Description copied from interface:UndertowListenerReturns the transport protocol. This will generally either be http, https or ajp.- Specified by:
getProtocolin interfaceUndertowListener- Specified by:
getProtocolin classListenerService- Returns:
- The transport protocol
-