Package com.aspectran.undertow.server
Class TowServer
- java.lang.Object
-
- com.aspectran.core.util.lifecycle.AbstractLifeCycle
-
- com.aspectran.undertow.server.TowServer
-
- All Implemented Interfaces:
DisposableBean,InitializableBean,LifeCycle
public class TowServer extends AbstractLifeCycle implements InitializableBean, DisposableBean
The Undertow Server managed by Aspectran.- Since:
- 6.3.0
- See Also:
- Undertow
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.aspectran.core.util.lifecycle.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface com.aspectran.core.util.lifecycle.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description TowServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()A Dispose implementation that calls the destroy() method.voiddoStart()voiddoStop()voidinitialize()Invoke on initialization after it has set all bean properties supplied.io.undertow.Undertow.BuildersetAjpListeners(AjpListenerConfig... ajpListenerConfigs)io.undertow.Undertow.BuildersetAutoStart(boolean autoStart)io.undertow.Undertow.BuildersetBufferSize(int bufferSize)io.undertow.Undertow.BuildersetDirectBuffers(boolean directBuffers)io.undertow.Undertow.BuildersetHandler(io.undertow.server.HttpHandler handler)io.undertow.Undertow.BuildersetHttpListeners(HttpListenerConfig... httpListenerConfigs)io.undertow.Undertow.BuildersetHttpsListeners(HttpsListenerConfig... httpsListenerConfigs)io.undertow.Undertow.BuildersetIoThreads(int ioThreads)<T> io.undertow.Undertow.BuildersetServerOption(org.xnio.Option<T> option, T value)voidsetServerOptions(TowOptions options)<T> io.undertow.Undertow.BuildersetSocketOption(org.xnio.Option<T> option, T value)voidsetSocketOptions(TowOptions options)io.undertow.Undertow.BuildersetSystemProperty(java.lang.String key, java.lang.String value)<T> io.undertow.Undertow.BuildersetWorkerOption(org.xnio.Option<T> option, T value)voidsetWorkerOptions(TowOptions options)io.undertow.Undertow.BuildersetWorkerThreads(int workerThreads)-
Methods inherited from class com.aspectran.core.util.lifecycle.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
-
-
-
-
Method Detail
-
setAutoStart
public io.undertow.Undertow.Builder setAutoStart(boolean autoStart)
-
setSystemProperty
public io.undertow.Undertow.Builder setSystemProperty(java.lang.String key, java.lang.String value)
-
setHttpListeners
public io.undertow.Undertow.Builder setHttpListeners(HttpListenerConfig... httpListenerConfigs)
-
setHttpsListeners
public io.undertow.Undertow.Builder setHttpsListeners(HttpsListenerConfig... httpsListenerConfigs) throws java.io.IOException
- Throws:
java.io.IOException
-
setAjpListeners
public io.undertow.Undertow.Builder setAjpListeners(AjpListenerConfig... ajpListenerConfigs)
-
setHandler
public io.undertow.Undertow.Builder setHandler(io.undertow.server.HttpHandler handler)
-
setBufferSize
public io.undertow.Undertow.Builder setBufferSize(int bufferSize)
-
setIoThreads
public io.undertow.Undertow.Builder setIoThreads(int ioThreads)
-
setWorkerThreads
public io.undertow.Undertow.Builder setWorkerThreads(int workerThreads)
-
setDirectBuffers
public io.undertow.Undertow.Builder setDirectBuffers(boolean directBuffers)
-
setServerOption
public <T> io.undertow.Undertow.Builder setServerOption(org.xnio.Option<T> option, T value)
-
setSocketOption
public <T> io.undertow.Undertow.Builder setSocketOption(org.xnio.Option<T> option, T value)
-
setWorkerOption
public <T> io.undertow.Undertow.Builder setWorkerOption(org.xnio.Option<T> option, T value)
-
setServerOptions
public void setServerOptions(TowOptions options)
-
setSocketOptions
public void setSocketOptions(TowOptions options)
-
setWorkerOptions
public void setWorkerOptions(TowOptions options)
-
doStart
public void doStart() throws java.lang.Exception- Overrides:
doStartin classAbstractLifeCycle- Throws:
java.lang.Exception
-
doStop
public void doStop()
- Overrides:
doStopin classAbstractLifeCycle
-
initialize
public void initialize() throws java.lang.ExceptionDescription copied from interface:InitializableBeanInvoke on initialization after it has set all bean properties supplied.- Specified by:
initializein interfaceInitializableBean- Throws:
java.lang.Exception- if initialization fails
-
destroy
public void destroy()
Description copied from interface:DisposableBeanA Dispose implementation that calls the destroy() method.- Specified by:
destroyin interfaceDisposableBean
-
-