Class CoreProfilePiranhaBuilder

java.lang.Object
cloud.piranha.dist.coreprofile.CoreProfilePiranhaBuilder

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

    • CoreProfilePiranhaBuilder

      public CoreProfilePiranhaBuilder()
  • Method Details

    • build

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

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

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

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

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

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

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

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

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

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

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

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

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

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