Package io.undertow
Class Undertow.Builder
java.lang.Object
io.undertow.Undertow.Builder
- Enclosing class:
- Undertow
-
Method Summary
Modifier and TypeMethodDescriptionaddAjpListener
(int port, String host) addAjpListener
(int port, String host, HttpHandler rootHandler) addHttpListener
(int port, String host) addHttpListener
(int port, String host, HttpHandler rootHandler) addHttpsListener
(int port, String host, KeyManager[] keyManagers, TrustManager[] trustManagers) addHttpsListener
(int port, String host, KeyManager[] keyManagers, TrustManager[] trustManagers, HttpHandler rootHandler) addHttpsListener
(int port, String host, SSLContext sslContext) addHttpsListener
(int port, String host, SSLContext sslContext, HttpHandler rootHandler) addListener
(int port, String host) Deprecated.addListener
(int port, String host, Undertow.ListenerType listenerType) Deprecated.addListener
(Undertow.ListenerBuilder listenerBuilder) build()
setBufferSize
(int bufferSize) setBuffersPerRegion
(int buffersPerRegion) Deprecated.setByteBufferPool
(ByteBufferPool byteBufferPool) setDirectBuffers
(boolean directBuffers) setHandler
(HttpHandler handler) 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) setSslEngineDelegatedTaskExecutor
(Executor sslEngineDelegatedTaskExecutor) 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) setWorkerThreads
(int workerThreads)
-
Method Details
-
build
-
addListener
Deprecated. -
addListener
@Deprecated public Undertow.Builder addListener(int port, String host, Undertow.ListenerType listenerType) Deprecated. -
addListener
-
addHttpListener
-
addHttpsListener
public Undertow.Builder addHttpsListener(int port, String host, KeyManager[] keyManagers, TrustManager[] trustManagers) -
addHttpsListener
-
addAjpListener
-
addHttpListener
-
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
-
setBufferSize
-
setBuffersPerRegion
Deprecated. -
setIoThreads
-
setWorkerThreads
-
setDirectBuffers
-
setHandler
-
setServerOption
-
setSocketOption
-
setWorkerOption
-
setWorker
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
-
setByteBufferPool
-