java.lang.Object
cloud.piranha.server.ServerPiranhaBuilder
The builder so you can easily build instances of
ServerPiranha
.- Author:
- Manfred Riem (mriem@manorrock.com)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the server.defaultExtensionClass
(Class<? extends cloud.piranha.core.api.WebApplicationExtension> defaultExtensionClass) Set the default extension class.defaultExtensionClass
(String defaultExtensionClassName) Set the default extension class.exitOnStop
(boolean exitOnStop) Set the exit on stop flag.httpPort
(int httpPort) Set the HTTP server port.httpsPort
(int httpsPort) Set the HTTPS server port.jpms
(boolean jpms) Enable/disable JPMS.sslKeystoreFile
(String sslKeystoreFile) Set the SSL keystore file.sslKeystorePassword
(String sslKeystorePassword) Set the SSL keystore password.sslTruststoreFile
(String sslTruststoreFile) Set the SSL truststore file.sslTruststorePassword
(String sslTruststorePassword) Set the SSL truststore password.verbose
(boolean verbose) Set the verbose flag.webAppsDir
(String webAppsDir) Set the web applications directory.
-
Constructor Details
-
ServerPiranhaBuilder
public ServerPiranhaBuilder()
-
-
Method Details
-
build
Build the server.- Returns:
- the server.
-
defaultExtensionClass
public ServerPiranhaBuilder defaultExtensionClass(Class<? extends cloud.piranha.core.api.WebApplicationExtension> defaultExtensionClass) Set the default extension class.- Parameters:
defaultExtensionClass
- the default extension class.- Returns:
- the builder.
-
defaultExtensionClass
Set the default extension class.- Parameters:
defaultExtensionClassName
- the default extension class name.- Returns:
- the builder.
-
exitOnStop
Set the exit on stop flag.- Parameters:
exitOnStop
- the exit on stop flag.- Returns:
- the builder.
-
httpPort
Set the HTTP server port.- Parameters:
httpPort
- the HTTP server port.- Returns:
- the builder.
-
httpsPort
Set the HTTPS server port.- Parameters:
httpsPort
- the HTTPS server port.- Returns:
- the builder.
-
jpms
Enable/disable JPMS.- Parameters:
jpms
- the JPMS flag.- Returns:
- the builder.
-
sslKeystoreFile
Set the SSL keystore file.- Parameters:
sslKeystoreFile
- the SSL keystore file.- Returns:
- the builder.
-
sslKeystorePassword
Set the SSL keystore password.- Parameters:
sslKeystorePassword
- the SSL keystore password.- Returns:
- the builder.
-
sslTruststoreFile
Set the SSL truststore file.- Parameters:
sslTruststoreFile
- the SSL truststore file.- Returns:
- the builder.
-
sslTruststorePassword
Set the SSL truststore password.- Parameters:
sslTruststorePassword
- the SSL truststore password.- Returns:
- the builder.
-
verbose
Set the verbose flag.- Parameters:
verbose
- the verbose flag.- Returns:
- the builder.
-
webAppsDir
Set the web applications directory.- Parameters:
webAppsDir
- the web applications directory.- Returns:
- the builder.
-