Package org.wildfly.extension.undertow
Class AjpListenerService
- java.lang.Object
-
- org.wildfly.extension.undertow.ListenerService
-
- org.wildfly.extension.undertow.AjpListenerService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<UndertowListener>,org.jboss.msc.value.Value<UndertowListener>,UndertowListener
public class AjpListenerService extends ListenerService
- Author:
- Tomaz Cerar (c) 2013 Red Hat Inc., Richard Opalka
-
-
Field Summary
-
Fields inherited from class org.wildfly.extension.undertow.ListenerService
binding, bufferPool, commonOptions, listenerOptions, openListener, redirectSocket, serverService, serviceConsumer, socketOptions, worker
-
-
Constructor Summary
Constructors Constructor Description AjpListenerService(Consumer<ListenerService> serviceConsumer, org.jboss.as.controller.PathAddress address, String scheme, org.xnio.OptionMap listenerOptions, org.xnio.OptionMap socketOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcleanFailedStart()protected io.undertow.server.OpenListenercreateOpenListener()StringgetProtocol()Returns the transport protocol.AjpListenerServicegetValue()booleanisSecure()Returns true if the listener is secure.protected voidpreStart(org.jboss.msc.service.StartContext context)-
Methods 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, unregisterBinding
-
-
-
-
Constructor Detail
-
AjpListenerService
public AjpListenerService(Consumer<ListenerService> serviceConsumer, org.jboss.as.controller.PathAddress address, String scheme, org.xnio.OptionMap listenerOptions, org.xnio.OptionMap socketOptions)
-
-
Method Detail
-
createOpenListener
protected io.undertow.server.OpenListener createOpenListener()
- Specified by:
createOpenListenerin classListenerService
-
cleanFailedStart
protected void cleanFailedStart()
- Specified by:
cleanFailedStartin classListenerService
-
getValue
public AjpListenerService getValue() throws IllegalStateException, IllegalArgumentException
-
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
-
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- Specified by:
getProtocolin classListenerService- Returns:
- The transport protocol
-
-