Class MicroPiranhaBuilder

java.lang.Object
cloud.piranha.micro.MicroPiranhaBuilder

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

    • MicroPiranhaBuilder

      public MicroPiranhaBuilder()
  • Method Details

    • build

      public MicroPiranha build()
      Build the Piranha instance.
      Returns:
      the Piranha instance.
    • exitOnStop

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

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

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

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

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

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

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

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

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

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

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

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