Package io.undertow
Class Undertow.Builder
- java.lang.Object
-
- io.undertow.Undertow.Builder
-
-
Method Summary
-
-
-
Method Detail
-
build
public Undertow build()
-
addListener
@Deprecated public Undertow.Builder addListener(int port, String host)
Deprecated.
-
addListener
@Deprecated public Undertow.Builder addListener(int port, String host, Undertow.ListenerType listenerType)
Deprecated.
-
addListener
public Undertow.Builder addListener(Undertow.ListenerBuilder listenerBuilder)
-
addHttpListener
public Undertow.Builder addHttpListener(int port, String host)
-
addHttpsListener
public Undertow.Builder addHttpsListener(int port, String host, KeyManager[] keyManagers, TrustManager[] trustManagers)
-
addHttpsListener
public Undertow.Builder addHttpsListener(int port, String host, SSLContext sslContext)
-
addAjpListener
public Undertow.Builder addAjpListener(int port, String host)
-
addHttpListener
public Undertow.Builder addHttpListener(int port, String host, HttpHandler rootHandler)
-
addHttpsListener
public Undertow.Builder addHttpsListener(int port, String host, KeyManager[] keyManagers, TrustManager[] trustManagers, HttpHandler rootHandler)
-
addHttpsListener
public Undertow.Builder addHttpsListener(int port, String host, SSLContext sslContext, HttpHandler rootHandler)
-
addAjpListener
public Undertow.Builder addAjpListener(int port, 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(Executor sslEngineDelegatedTaskExecutor)
-
setByteBufferPool
public Undertow.Builder setByteBufferPool(ByteBufferPool byteBufferPool)
-
-