Package io.undertow
Class Undertow.Builder
- java.lang.Object
-
- io.undertow.Undertow.Builder
-
- Enclosing class:
- Undertow
public static final class Undertow.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Undertow.Builder
addAjpListener(int port, java.lang.String host)
Undertow.Builder
addAjpListener(int port, java.lang.String host, HttpHandler rootHandler)
Undertow.Builder
addHttpListener(int port, java.lang.String host)
Undertow.Builder
addHttpListener(int port, java.lang.String host, HttpHandler rootHandler)
Undertow.Builder
addHttpsListener(int port, java.lang.String host, javax.net.ssl.KeyManager[] keyManagers, javax.net.ssl.TrustManager[] trustManagers)
Undertow.Builder
addHttpsListener(int port, java.lang.String host, javax.net.ssl.KeyManager[] keyManagers, javax.net.ssl.TrustManager[] trustManagers, HttpHandler rootHandler)
Undertow.Builder
addHttpsListener(int port, java.lang.String host, javax.net.ssl.SSLContext sslContext)
Undertow.Builder
addHttpsListener(int port, java.lang.String host, javax.net.ssl.SSLContext sslContext, HttpHandler rootHandler)
Undertow.Builder
addListener(int port, java.lang.String host)
Deprecated.Undertow.Builder
addListener(int port, java.lang.String host, Undertow.ListenerType listenerType)
Deprecated.Undertow.Builder
addListener(Undertow.ListenerBuilder listenerBuilder)
Undertow
build()
Undertow.Builder
setBufferSize(int bufferSize)
Undertow.Builder
setBuffersPerRegion(int buffersPerRegion)
Deprecated.Undertow.Builder
setByteBufferPool(ByteBufferPool byteBufferPool)
Undertow.Builder
setDirectBuffers(boolean directBuffers)
Undertow.Builder
setHandler(HttpHandler handler)
Undertow.Builder
setIoThreads(int ioThreads)
<T> Undertow.Builder
setServerOption(org.xnio.Option<T> option, T value)
<T> Undertow.Builder
setSocketOption(org.xnio.Option<T> option, T value)
Undertow.Builder
setSslEngineDelegatedTaskExecutor(java.util.concurrent.Executor sslEngineDelegatedTaskExecutor)
Undertow.Builder
setWorker(org.xnio.XnioWorker worker)
When null (the default), a newXnioWorker
will be created according to the various worker-related configuration (ioThreads, workerThreads, workerOptions) whenUndertow.start()
is called.<T> Undertow.Builder
setWorkerOption(org.xnio.Option<T> option, T value)
Undertow.Builder
setWorkerThreads(int workerThreads)
-
-
-
Method Detail
-
build
public Undertow build()
-
addListener
@Deprecated public Undertow.Builder addListener(int port, java.lang.String host)
Deprecated.
-
addListener
@Deprecated public Undertow.Builder addListener(int port, java.lang.String host, Undertow.ListenerType listenerType)
Deprecated.
-
addListener
public Undertow.Builder addListener(Undertow.ListenerBuilder listenerBuilder)
-
addHttpListener
public Undertow.Builder addHttpListener(int port, java.lang.String host)
-
addHttpsListener
public Undertow.Builder addHttpsListener(int port, java.lang.String host, javax.net.ssl.KeyManager[] keyManagers, javax.net.ssl.TrustManager[] trustManagers)
-
addHttpsListener
public Undertow.Builder addHttpsListener(int port, java.lang.String host, javax.net.ssl.SSLContext sslContext)
-
addAjpListener
public Undertow.Builder addAjpListener(int port, java.lang.String host)
-
addHttpListener
public Undertow.Builder addHttpListener(int port, java.lang.String host, HttpHandler rootHandler)
-
addHttpsListener
public Undertow.Builder addHttpsListener(int port, java.lang.String host, javax.net.ssl.KeyManager[] keyManagers, javax.net.ssl.TrustManager[] trustManagers, HttpHandler rootHandler)
-
addHttpsListener
public Undertow.Builder addHttpsListener(int port, java.lang.String host, javax.net.ssl.SSLContext sslContext, HttpHandler rootHandler)
-
addAjpListener
public Undertow.Builder addAjpListener(int port, java.lang.String host, HttpHandler rootHandler)
-
setBufferSize
public Undertow.Builder setBufferSize(int bufferSize)
-
setBuffersPerRegion
@Deprecated public Undertow.Builder setBuffersPerRegion(int buffersPerRegion)
Deprecated.
-
setIoThreads
public Undertow.Builder setIoThreads(int ioThreads)
-
setWorkerThreads
public Undertow.Builder setWorkerThreads(int workerThreads)
-
setDirectBuffers
public Undertow.Builder setDirectBuffers(boolean directBuffers)
-
setHandler
public Undertow.Builder setHandler(HttpHandler handler)
-
setServerOption
public <T> Undertow.Builder setServerOption(org.xnio.Option<T> option, T value)
-
setSocketOption
public <T> Undertow.Builder setSocketOption(org.xnio.Option<T> option, T value)
-
setWorkerOption
public <T> Undertow.Builder setWorkerOption(org.xnio.Option<T> option, T value)
-
setWorker
public Undertow.Builder setWorker(org.xnio.XnioWorker worker)
When null (the default), a newXnioWorker
will be created according to the various worker-related configuration (ioThreads, workerThreads, workerOptions) whenUndertow.start()
is called. Additionally, this newly created worker will be shutdown whenUndertow.stop()
is called.
When non-null, the provided
XnioWorker
will be reused instead of creating a newXnioWorker
whenUndertow.start()
is called. Additionally, the providedXnioWorker
will NOT be shutdown whenUndertow.stop()
is called. Essentially, the lifecycle of the provided worker must be maintained outside of theUndertow
instance.
-
setSslEngineDelegatedTaskExecutor
public Undertow.Builder setSslEngineDelegatedTaskExecutor(java.util.concurrent.Executor sslEngineDelegatedTaskExecutor)
-
setByteBufferPool
public Undertow.Builder setByteBufferPool(ByteBufferPool byteBufferPool)
-
-