Class ApplicationServer

java.lang.Object
is.galia.ApplicationServer

public class ApplicationServer extends Object

Provides the embedded web server.

  • Constructor Details

    • ApplicationServer

      public ApplicationServer()
      Initializes the instance with arbitrary defaults.
    • ApplicationServer

      public ApplicationServer(Configuration config)
      Initializes the instance with defaults from a Configuration object.
      Parameters:
      config - Instance from which to obtain settings.
  • Method Details

    • getAcceptQueueLimit

      public int getAcceptQueueLimit()
    • getHTTPHost

      public String getHTTPHost()
    • getHTTPPort

      public int getHTTPPort()
    • getHTTPSHost

      public String getHTTPSHost()
    • getHTTPSKeyPassword

      public String getHTTPSKeyPassword()
    • getHTTPSKeyStorePassword

      public String getHTTPSKeyStorePassword()
    • getHTTPSKeyStorePath

      public String getHTTPSKeyStorePath()
    • getHTTPSKeyStoreType

      public String getHTTPSKeyStoreType()
    • getHTTPSPort

      public int getHTTPSPort()
    • getIdleTimeout

      public Duration getIdleTimeout()
    • getMaxThreads

      public int getMaxThreads()
    • getMinThreads

      public int getMinThreads()
    • isHTTPEnabled

      public boolean isHTTPEnabled()
    • isHTTPSEnabled

      public boolean isHTTPSEnabled()
    • isStarted

      public boolean isStarted()
    • isStopped

      public boolean isStopped()
    • setAcceptQueueLimit

      public void setAcceptQueueLimit(int size)
    • setHTTPEnabled

      public void setHTTPEnabled(boolean enabled)
    • setHTTPHost

      public void setHTTPHost(String host)
    • setHTTPPort

      public void setHTTPPort(int port)
    • setHTTPSEnabled

      public void setHTTPSEnabled(boolean enabled)
    • setHTTPSHost

      public void setHTTPSHost(String host)
    • setHTTPSKeyPassword

      public void setHTTPSKeyPassword(String password)
    • setHTTPSKeyStorePassword

      public void setHTTPSKeyStorePassword(String password)
    • setHTTPSKeyStorePath

      public void setHTTPSKeyStorePath(String path)
    • setHTTPSKeyStoreType

      public void setHTTPSKeyStoreType(String type)
    • setHTTPSPort

      public void setHTTPSPort(int port)
    • setIdleTimeout

      public void setIdleTimeout(Duration timeout)
    • setMaxThreads

      public void setMaxThreads(int maxThreads)
    • setMinThreads

      public void setMinThreads(int minThreads)
    • start

      public void start() throws Exception
      Starts the HTTP and/or HTTPS servers.
      Throws:
      Exception - if there is a problem starting the server.
    • stop

      public void stop() throws Exception
      Throws:
      Exception