Package org.wildfly.extension.undertow
Class HttpsListenerService
- java.lang.Object
-
- org.wildfly.extension.undertow.ListenerService
-
- org.wildfly.extension.undertow.HttpListenerService
-
- org.wildfly.extension.undertow.HttpsListenerService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<UndertowListener>,org.jboss.msc.value.Value<UndertowListener>,UndertowListener
public class HttpsListenerService extends HttpListenerService
An extension of {@see HttpListenerService} to add SSL.- Author:
- Darran Lofthouse, Tomaz Cerar, Richard Opalka
-
-
Field Summary
-
Fields inherited from class org.wildfly.extension.undertow.HttpListenerService
httpListenerRegistry
-
Fields inherited from class org.wildfly.extension.undertow.ListenerService
binding, bufferPool, commonOptions, listenerOptions, openListener, redirectSocket, serverService, serviceConsumer, socketOptions, worker
-
-
Constructor Summary
Constructors Constructor Description HttpsListenerService(Consumer<ListenerService> serviceConsumer, org.jboss.as.controller.PathAddress address, String serverName, org.xnio.OptionMap listenerOptions, String cipherSuites, org.xnio.OptionMap socketOptions, boolean proxyProtocol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.undertow.server.OpenListenercreateOpenListener()StringgetProtocol()Returns the transport protocol.protected io.undertow.protocols.ssl.UndertowXnioSslgetSsl()protected org.xnio.OptionMapgetSSLOptions(SSLContext sslContext)booleanisSecure()Returns true if the listener is secure.protected voidstartListening(org.xnio.XnioWorker worker, InetSocketAddress socketAddress, org.xnio.ChannelListener<org.xnio.channels.AcceptingChannel<org.xnio.StreamConnection>> acceptListener)protected voidstopListening()-
Methods inherited from class org.wildfly.extension.undertow.HttpListenerService
cleanFailedStart, getHttpListenerRegistry, getValue, preStart, unregisterBinding
-
Methods inherited from class org.wildfly.extension.undertow.ListenerService
getBinding, getBufferPool, getName, getOpenListener, getRedirectSocket, getServer, getServerService, getSocketBinding, getUndertowService, getWorker, isEnabled, isShutdown, registerBinding, setEnabled, start, stop
-
-
-
-
Constructor Detail
-
HttpsListenerService
public HttpsListenerService(Consumer<ListenerService> serviceConsumer, org.jboss.as.controller.PathAddress address, String serverName, org.xnio.OptionMap listenerOptions, String cipherSuites, org.xnio.OptionMap socketOptions, boolean proxyProtocol)
-
-
Method Detail
-
getSsl
protected io.undertow.protocols.ssl.UndertowXnioSsl getSsl()
- Overrides:
getSslin classListenerService
-
getSSLOptions
protected org.xnio.OptionMap getSSLOptions(SSLContext sslContext)
- Overrides:
getSSLOptionsin classListenerService
-
createOpenListener
protected io.undertow.server.OpenListener createOpenListener()
- Overrides:
createOpenListenerin classHttpListenerService
-
startListening
protected void startListening(org.xnio.XnioWorker worker, InetSocketAddress socketAddress, org.xnio.ChannelListener<org.xnio.channels.AcceptingChannel<org.xnio.StreamConnection>> acceptListener) throws IOException- Overrides:
startListeningin classHttpListenerService- Throws:
IOException
-
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- Overrides:
isSecurein classHttpListenerService- Returns:
trueif the listener is considered security
-
stopListening
protected void stopListening()
- Overrides:
stopListeningin classHttpListenerService
-
getProtocol
public String getProtocol()
Description copied from interface:UndertowListenerReturns the transport protocol. This will generally either be http, https or ajp.- Specified by:
getProtocolin interfaceUndertowListener- Overrides:
getProtocolin classHttpListenerService- Returns:
- The transport protocol
-
-