Class ServerPiranhaBuilder

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

@Deprecated(since="22.10.0", forRemoval=true) public class ServerPiranhaBuilder extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
The builder so you can easily build instances of ServerPiranha.

This module and distribution is deprecated. Please use the cloud.piranha.dist.server module and its distribution instead.

Author:
Manfred Riem ([email protected])
See Also:
  • Constructor Details

    • ServerPiranhaBuilder

      public ServerPiranhaBuilder()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • build

      public ServerPiranha build()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Build the server.
      Returns:
      the server.
    • defaultExtensionClass

      public ServerPiranhaBuilder defaultExtensionClass(Class<? extends WebApplicationExtension> defaultExtensionClass)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the default extension class.
      Parameters:
      defaultExtensionClass - the default extension class.
      Returns:
      the builder.
    • defaultExtensionClass

      public ServerPiranhaBuilder defaultExtensionClass(String defaultExtensionClassName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the default extension class.
      Parameters:
      defaultExtensionClassName - the default extension class name.
      Returns:
      the builder.
    • exitOnStop

      public ServerPiranhaBuilder exitOnStop(boolean exitOnStop)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the exit on stop flag.
      Parameters:
      exitOnStop - the exit on stop flag.
      Returns:
      the builder.
    • httpPort

      public ServerPiranhaBuilder httpPort(int httpPort)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the HTTP server port.
      Parameters:
      httpPort - the HTTP server port.
      Returns:
      the builder.
    • httpsPort

      public ServerPiranhaBuilder httpsPort(int httpsPort)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the HTTPS server port.
      Parameters:
      httpsPort - the HTTPS server port.
      Returns:
      the builder.
    • jpms

      public ServerPiranhaBuilder jpms(boolean jpms)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Enable/disable JPMS.
      Parameters:
      jpms - the JPMS flag.
      Returns:
      the builder.
    • sslKeystoreFile

      public ServerPiranhaBuilder sslKeystoreFile(String sslKeystoreFile)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the SSL keystore file.
      Parameters:
      sslKeystoreFile - the SSL keystore file.
      Returns:
      the builder.
    • sslKeystorePassword

      public ServerPiranhaBuilder sslKeystorePassword(String sslKeystorePassword)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the SSL keystore password.
      Parameters:
      sslKeystorePassword - the SSL keystore password.
      Returns:
      the builder.
    • sslTruststoreFile

      public ServerPiranhaBuilder sslTruststoreFile(String sslTruststoreFile)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the SSL truststore file.
      Parameters:
      sslTruststoreFile - the SSL truststore file.
      Returns:
      the builder.
    • sslTruststorePassword

      public ServerPiranhaBuilder sslTruststorePassword(String sslTruststorePassword)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the SSL truststore password.
      Parameters:
      sslTruststorePassword - the SSL truststore password.
      Returns:
      the builder.
    • verbose

      public ServerPiranhaBuilder verbose(boolean verbose)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the verbose flag.
      Parameters:
      verbose - the verbose flag.
      Returns:
      the builder.
    • webAppsDir

      public ServerPiranhaBuilder webAppsDir(String webAppsDir)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the web applications directory.
      Parameters:
      webAppsDir - the web applications directory.
      Returns:
      the builder.