Class HTTPSServerConfig

java.lang.Object
org.languagetool.server.HTTPServerConfig
org.languagetool.server.HTTPSServerConfig

public class HTTPSServerConfig extends HTTPServerConfig
Since:
2.0
  • Field Details

    • keystore

      private final File keystore
    • keyStorePassword

      private final String keyStorePassword
  • Constructor Details

    • HTTPSServerConfig

      public HTTPSServerConfig(File keystore, String keyStorePassword)
      Parameters:
      keystore - a Java keystore file as created with the keytool command
      keyStorePassword - the password for the keystore
    • HTTPSServerConfig

      public HTTPSServerConfig(int serverPort, boolean verbose, File keystore, String keyStorePassword)
      Parameters:
      serverPort - the port to bind to
      verbose - when set to true, the input text will be logged in case there is an exception
      keystore - a Java keystore file as created with the keytool command
      keyStorePassword - the password for the keystore
    • HTTPSServerConfig

      HTTPSServerConfig(int serverPort, boolean verbose, File keystore, String keyStorePassword, int requestLimit, int requestLimitPeriodInSeconds)
      Parameters:
      serverPort - the port to bind to
      verbose - when set to true, the input text will be logged in case there is an exception
      keystore - a Java keystore file as created with the keytool command
      keyStorePassword - the password for the keystore
      Since:
      2.1
    • HTTPSServerConfig

      HTTPSServerConfig(String[] args)
      Parse command line options and load settings from property file.
  • Method Details

    • getKeystore

      File getKeystore()
    • getKeyStorePassword

      String getKeyStorePassword()