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.BuildersetServerOption(org.xnio.Option<T> option, T value) <T> Undertow.BuildersetSocketOption(org.xnio.Option<T> option, T value) setSslEngineDelegatedTaskExecutor(Executor sslEngineDelegatedTaskExecutor) setWorker(org.xnio.XnioWorker worker) When null (the default), a newXnioWorkerwill be created according to the various worker-related configuration (ioThreads, workerThreads, workerOptions) whenUndertow.start()is called.<T> Undertow.BuildersetWorkerOption(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 newXnioWorkerwill 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
XnioWorkerwill be reused instead of creating a newXnioWorkerwhenUndertow.start()is called. Additionally, the providedXnioWorkerwill NOT be shutdown whenUndertow.stop()is called. Essentially, the lifecycle of the provided worker must be maintained outside of theUndertowinstance. -
setSslEngineDelegatedTaskExecutor
-
setByteBufferPool
-