Class AbstractTowServer

java.lang.Object
com.aspectran.utils.lifecycle.AbstractLifeCycle
com.aspectran.undertow.server.AbstractTowServer
All Implemented Interfaces:
TowServer, LifeCycle
Direct Known Subclasses:
DefaultTowServer

public abstract class AbstractTowServer extends AbstractLifeCycle implements TowServer

Created: 11/25/23

  • Constructor Details

    • AbstractTowServer

      public AbstractTowServer()
  • Method Details

    • getBuilder

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

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

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

      public void setAjpListeners(AjpListenerConfig... ajpListenerConfigs)
    • 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)
    • setServerOptions

      public void setServerOptions(TowOptions options)
    • setSocketOptions

      public void setSocketOptions(TowOptions options)
    • setWorkerOptions

      public void setWorkerOptions(TowOptions options)
    • getHandler

      public io.undertow.server.HttpHandler getHandler()
    • setHandler

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

      public io.undertow.servlet.api.ServletContainer getServletContainer()
    • setServletContainer

      public void setServletContainer(io.undertow.servlet.api.ServletContainer servletContainer)
    • isAutoStart

      public boolean isAutoStart()
      Returns whether the server starts automatically.
      Specified by:
      isAutoStart in interface TowServer
      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
    • getShutdownTimeoutSecs

      public int getShutdownTimeoutSecs()
    • setShutdownTimeoutSecs

      public void setShutdownTimeoutSecs(int shutdownTimeoutSecs)
    • setSystemProperty

      public void setSystemProperty(String key, String value)
    • getDeploymentManager

      public io.undertow.servlet.api.DeploymentManager getDeploymentManager(String deploymentName)
      Specified by:
      getDeploymentManager in interface TowServer
    • getDeploymentManagerByPath

      public io.undertow.servlet.api.DeploymentManager getDeploymentManagerByPath(String path)
      Specified by:
      getDeploymentManagerByPath in interface TowServer
    • getSessionHandler

      public SessionHandler getSessionHandler(String deploymentName)
      Specified by:
      getSessionHandler in interface TowServer
    • getSessionHandlerByPath

      public SessionHandler getSessionHandlerByPath(String path)
      Specified by:
      getSessionHandlerByPath in interface TowServer