java.lang.Object
cloud.piranha.server.ServerPiranha
- All Implemented Interfaces:
cloud.piranha.core.api.Piranha
,Runnable
@Deprecated(since="22.10.0",
forRemoval=true)
public class ServerPiranha
extends Object
implements cloud.piranha.core.api.Piranha, Runnable
Deprecated, for removal: This API element is subject to removal in a future version.
The Piranha Server runtime.
This module and distribution is deprecated. Please use the cloud.piranha.dist.server module and its distribution instead.
- Author:
- Manfred Riem (mriem@manorrock.com)
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Deprecated, for removal: This API element is subject to removal in a future version.Run method.void
service
(cloud.piranha.core.api.WebApplicationRequest request, cloud.piranha.core.api.WebApplicationResponse response) Deprecated, for removal: This API element is subject to removal in a future version.void
setDefaultExtensionClass
(Class<? extends cloud.piranha.core.api.WebApplicationExtension> defaultExtensionClass) Deprecated, for removal: This API element is subject to removal in a future version.Set the default extension class.void
setExitOnStop
(boolean exitOnStop) Deprecated, for removal: This API element is subject to removal in a future version.Set the exit on stop flag.void
setHttpPort
(int httpPort) Deprecated, for removal: This API element is subject to removal in a future version.Set the HTTP server port.void
setHttpsPort
(int httpsPort) Deprecated, for removal: This API element is subject to removal in a future version.Set the HTTPS server port.void
setJpmsEnabled
(boolean jpmsEnabled) Deprecated, for removal: This API element is subject to removal in a future version.Enable/disable JPMS.void
setSslKeystoreFile
(String sslKeystoreFile) Deprecated, for removal: This API element is subject to removal in a future version.Set the SSL keystore file.void
setSslTruststoreFile
(String sslTruststoreFile) Deprecated, for removal: This API element is subject to removal in a future version.Set the SSL truststore file.void
setWebAppsDir
(File webAppsDir) Deprecated, for removal: This API element is subject to removal in a future version.Set the web applications directory.void
start()
Deprecated, for removal: This API element is subject to removal in a future version.Start the server.void
Deprecated, for removal: This API element is subject to removal in a future version.Start the HTTP server (if requested).void
stop()
Deprecated, for removal: This API element is subject to removal in a future version.Stop the server.
-
Constructor Details
-
ServerPiranha
public ServerPiranha()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
run
public void run()Deprecated, for removal: This API element is subject to removal in a future version.Run method. -
service
public void service(cloud.piranha.core.api.WebApplicationRequest request, cloud.piranha.core.api.WebApplicationResponse response) throws IOException, jakarta.servlet.ServletException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
service
in interfacecloud.piranha.core.api.Piranha
- Throws:
IOException
jakarta.servlet.ServletException
-
setDefaultExtensionClass
public void setDefaultExtensionClass(Class<? extends cloud.piranha.core.api.WebApplicationExtension> defaultExtensionClass) Deprecated, for removal: This API element is subject to removal in a future version.Set the default extension class.- Parameters:
defaultExtensionClass
- the default extension class.
-
setExitOnStop
public void setExitOnStop(boolean exitOnStop) Deprecated, for removal: This API element is subject to removal in a future version.Set the exit on stop flag.- Parameters:
exitOnStop
- the exit on stop flag.
-
setHttpPort
public void setHttpPort(int httpPort) Deprecated, for removal: This API element is subject to removal in a future version.Set the HTTP server port.- Parameters:
httpPort
- the HTTP server port.
-
setHttpsPort
public void setHttpsPort(int httpsPort) Deprecated, for removal: This API element is subject to removal in a future version.Set the HTTPS server port.- Parameters:
httpsPort
- the HTTPS server port.
-
setJpmsEnabled
public void setJpmsEnabled(boolean jpmsEnabled) Deprecated, for removal: This API element is subject to removal in a future version.Enable/disable JPMS.- Parameters:
jpmsEnabled
- the JPMS enabled flag.
-
setSslKeystoreFile
Deprecated, for removal: This API element is subject to removal in a future version.Set the SSL keystore file.Convenience wrapper around the
javax.net.ssl.keyStore
system property. Note using this method sets the property for the entire JVM.- Parameters:
sslKeystoreFile
- the SSL keystore file.
-
setSslTruststoreFile
Deprecated, for removal: This API element is subject to removal in a future version.Set the SSL truststore file.Convenience wrapper around the
javax.net.ssl.trustStore
system property. Note using this method sets the property for the entire JVM.- Parameters:
sslTruststoreFile
- the SSL truststore file.
-
setWebAppsDir
Deprecated, for removal: This API element is subject to removal in a future version.Set the web applications directory.- Parameters:
webAppsDir
- the web applications directory.
-
start
public void start()Deprecated, for removal: This API element is subject to removal in a future version.Start the server. -
startHttpServer
public void startHttpServer()Deprecated, for removal: This API element is subject to removal in a future version.Start the HTTP server (if requested). -
stop
public void stop()Deprecated, for removal: This API element is subject to removal in a future version.Stop the server.
-