Class ServerPiranhaBuilder

java.lang.Object
cloud.piranha.server.ServerPiranhaBuilder

public class ServerPiranhaBuilder extends Object
The builder so you can easily build instances of ServerPiranha.
Author:
Manfred Riem ([email protected])
See Also:
  • Constructor Details

    • ServerPiranhaBuilder

      public ServerPiranhaBuilder()
  • Method Details

    • build

      public ServerPiranha build()
      Build the server.
      Returns:
      the server.
    • defaultExtensionClass

      public ServerPiranhaBuilder defaultExtensionClass(Class<? extends WebApplicationExtension> defaultExtensionClass)
      Set the default extension class.
      Parameters:
      defaultExtensionClass - the default extension class.
      Returns:
      the builder.
    • defaultExtensionClass

      public ServerPiranhaBuilder defaultExtensionClass(String defaultExtensionClassName)
      Set the default extension class.
      Parameters:
      defaultExtensionClassName - the default extension class name.
      Returns:
      the builder.
    • exitOnStop

      public ServerPiranhaBuilder exitOnStop(boolean exitOnStop)
      Set the exit on stop flag.
      Parameters:
      exitOnStop - the exit on stop flag.
      Returns:
      the builder.
    • httpPort

      public ServerPiranhaBuilder httpPort(int httpPort)
      Set the HTTP server port.
      Parameters:
      httpPort - the HTTP server port.
      Returns:
      the builder.
    • httpsPort

      public ServerPiranhaBuilder httpsPort(int httpsPort)
      Set the HTTPS server port.
      Parameters:
      httpsPort - the HTTPS server port.
      Returns:
      the builder.
    • jpms

      public ServerPiranhaBuilder jpms(boolean jpms)
      Enable/disable JPMS.
      Parameters:
      jpms - the JPMS flag.
      Returns:
      the builder.
    • sslKeystoreFile

      public ServerPiranhaBuilder sslKeystoreFile(String sslKeystoreFile)
      Set the SSL keystore file.
      Parameters:
      sslKeystoreFile - the SSL keystore file.
      Returns:
      the builder.
    • sslKeystorePassword

      public ServerPiranhaBuilder sslKeystorePassword(String sslKeystorePassword)
      Set the SSL keystore password.
      Parameters:
      sslKeystorePassword - the SSL keystore password.
      Returns:
      the builder.
    • sslTruststoreFile

      public ServerPiranhaBuilder sslTruststoreFile(String sslTruststoreFile)
      Set the SSL truststore file.
      Parameters:
      sslTruststoreFile - the SSL truststore file.
      Returns:
      the builder.
    • sslTruststorePassword

      public ServerPiranhaBuilder sslTruststorePassword(String sslTruststorePassword)
      Set the SSL truststore password.
      Parameters:
      sslTruststorePassword - the SSL truststore password.
      Returns:
      the builder.
    • verbose

      public ServerPiranhaBuilder verbose(boolean verbose)
      Set the verbose flag.
      Parameters:
      verbose - the verbose flag.
      Returns:
      the builder.
    • webAppsDir

      public ServerPiranhaBuilder webAppsDir(String webAppsDir)
      Set the web applications directory.
      Parameters:
      webAppsDir - the web applications directory.
      Returns:
      the builder.