Package io.undertow

Class Undertow.Builder

  • Enclosing class:
    Undertow

    public static final class Undertow.Builder
    extends java.lang.Object
    • Method Detail

      • addListener

        @Deprecated
        public Undertow.Builder addListener​(int port,
                                            java.lang.String host)
        Deprecated.
      • 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)
      • 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)
      • setBuffersPerRegion

        @Deprecated
        public Undertow.Builder setBuffersPerRegion​(int buffersPerRegion)
        Deprecated.
      • setWorkerThreads

        public Undertow.Builder setWorkerThreads​(int workerThreads)
      • setDirectBuffers

        public Undertow.Builder setDirectBuffers​(boolean directBuffers)
      • 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 new XnioWorker will be created according to the various worker-related configuration (ioThreads, workerThreads, workerOptions) when Undertow.start() is called. Additionally, this newly created worker will be shutdown when Undertow.stop() is called.

        When non-null, the provided XnioWorker will be reused instead of creating a new XnioWorker when Undertow.start() is called. Additionally, the provided XnioWorker will NOT be shutdown when Undertow.stop() is called. Essentially, the lifecycle of the provided worker must be maintained outside of the Undertow instance.

      • setSslEngineDelegatedTaskExecutor

        public Undertow.Builder setSslEngineDelegatedTaskExecutor​(java.util.concurrent.Executor sslEngineDelegatedTaskExecutor)