Class ServletPiranhaBuilder

java.lang.Object
cloud.piranha.dist.servlet.ServletPiranhaBuilder

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

    • ServletPiranhaBuilder

      public ServletPiranhaBuilder()
  • Method Details

    • build

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

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

      public ServletPiranhaBuilder crac(boolean crac)
      Set the CRaC enabled flag.
      Parameters:
      crac - the CRaC enabled flag.
      Returns:
      the builder.
    • exitOnStop

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

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

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

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

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

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

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

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

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

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

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

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

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

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