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
An extension of to add SSL.
- Author:
- Darran Lofthouse, Tomaz Cerar, Richard Opalka
-
Field Summary
Fields inherited from class org.wildfly.extension.undertow.HttpListenerService
httpListenerRegistryFields 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
ConstructorsConstructorDescriptionHttpsListenerService(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
Modifier and TypeMethodDescriptionprotected io.undertow.server.OpenListenerReturns 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 voidMethods inherited from class org.wildfly.extension.undertow.HttpListenerService
cleanFailedStart, getHttpListenerRegistry, getValue, preStart, unregisterBindingMethods 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 Details
-
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 Details
-
getSsl
protected io.undertow.protocols.ssl.UndertowXnioSsl getSsl()- Overrides:
getSslin classListenerService
-
getSSLOptions
- 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
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
-