Class WebProfilePiranhaBuilder

java.lang.Object
cloud.piranha.dist.webprofile.WebProfilePiranhaBuilder

public class WebProfilePiranhaBuilder extends Object
The Builder for Piranha Web Profile.
Author:
Manfred Riem ([email protected])
  • Constructor Details

    • WebProfilePiranhaBuilder

      public WebProfilePiranhaBuilder()
  • Method Details

    • build

      public WebProfilePiranha build()
      Build the Piranha instance.
      Returns:
      the Piranha instance.
    • contextPath

      public WebProfilePiranhaBuilder contextPath(String contextPath)
      Set the context path.
      Parameters:
      contextPath - the context path.
      Returns:
      the builder.
    • exitOnStop

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

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

      public WebProfilePiranhaBuilder extensionClass(String extensionClassName)
      Set the extension class.
      Parameters:
      extensionClassName - the default extension class name.
      Returns:
      the builder.
    • httpPort

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

      public WebProfilePiranhaBuilder httpServerClass(String httpServerClass)
      Set the HTTP server class.
      Parameters:
      httpServerClass - the HTTP server class.
      Returns:
      the builder.
    • httpsPort

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

      public WebProfilePiranhaBuilder httpsServerClass(String httpsServerClass)
      Set the HTTPS server class.
      Parameters:
      httpsServerClass - the HTTPS server class.
      Returns:
      the builder.
    • jpms

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

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

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

      public WebProfilePiranhaBuilder verbose(boolean verbose)
      Set the verbose flag.
      Parameters:
      verbose - the verbose flag.
      Returns:
      the builder.
    • warFile

      public WebProfilePiranhaBuilder warFile(String warFile)
      Set the WAR file.
      Parameters:
      warFile - the WAR file.
      Returns:
      the builder.
    • webAppDir

      public WebProfilePiranhaBuilder webAppDir(String webAppDir)
      Set the web application directory.
      Parameters:
      webAppDir - the web application directory.
      Returns:
      the builder.
    • pid

      public WebProfilePiranhaBuilder pid(Long pid)
      Set the PID.
      Parameters:
      pid - the PID.
      Returns:
      the builder.