Class TowServer

    • Constructor Detail

      • TowServer

        public TowServer()
    • Method Detail

      • isAutoStart

        public boolean isAutoStart()
        Returns whether the server starts automatically.
        Returns:
        true if the server should be started
      • setAutoStart

        public void setAutoStart​(boolean autoStart)
        Specifies whether the server should start automatically.
        Parameters:
        autoStart - if the server should be started
      • getShutdownTimeout

        public int getShutdownTimeout()
      • setShutdownTimeout

        public void setShutdownTimeout​(int shutdownTimeout)
      • getStopDelayTime

        public int getStopDelayTime()
      • setStopDelayTime

        public void setStopDelayTime​(int stopDelayTime)
      • setSystemProperty

        public void setSystemProperty​(java.lang.String key,
                                      java.lang.String value)
      • setHttpListeners

        public void setHttpListeners​(HttpListenerConfig... httpListenerConfigs)
      • setHttpsListeners

        public void setHttpsListeners​(HttpsListenerConfig... httpsListenerConfigs)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • setAjpListeners

        public void setAjpListeners​(AjpListenerConfig... ajpListenerConfigs)
      • setHandler

        public void setHandler​(io.undertow.server.HttpHandler handler)
      • setBufferSize

        public void setBufferSize​(int bufferSize)
      • setIoThreads

        public void setIoThreads​(int ioThreads)
      • setWorkerThreads

        public void setWorkerThreads​(int workerThreads)
      • setDirectBuffers

        public void setDirectBuffers​(boolean directBuffers)
      • setServerOption

        public <T> void setServerOption​(org.xnio.Option<T> option,
                                        T value)
      • setSocketOption

        public <T> void setSocketOption​(org.xnio.Option<T> option,
                                        T value)
      • setWorkerOption

        public <T> void setWorkerOption​(org.xnio.Option<T> option,
                                        T value)
      • getBuilder

        public io.undertow.Undertow.Builder getBuilder()
      • setServerOptions

        public void setServerOptions​(TowOptions options)
      • setSocketOptions

        public void setSocketOptions​(TowOptions options)
      • setWorkerOptions

        public void setWorkerOptions​(TowOptions options)
      • setTowServletContainer

        public void setTowServletContainer​(TowServletContainer towServletContainer)
      • doStart

        public void doStart()
                     throws java.lang.Exception
        Overrides:
        doStart in class AbstractLifeCycle
        Throws:
        java.lang.Exception
      • initialize

        public void initialize()
                        throws java.lang.Exception
        Description copied from interface: InitializableBean
        Invoke on initialization after it has set all bean properties supplied.
        Specified by:
        initialize in interface InitializableBean
        Throws:
        java.lang.Exception - if initialization fails
      • destroy

        public void destroy()
        Description copied from interface: DisposableBean
        A Dispose implementation that calls the destroy() method.
        Specified by:
        destroy in interface DisposableBean