Package cloud.piranha.server.isolated
Class IsolatedServerPiranha
java.lang.Object
cloud.piranha.server.isolated.IsolatedServerPiranha
The Servlet container version of Piranha.
This version of Piranha makes it possible for you to run multiple web applications at the same time.
It has a shutdown mechanism that allows you to shutdown the server by removing the piranha.pid file that should be created by the startup script.
- Author:
- Manfred Riem ([email protected]), Arjan Tijms
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IsolatedServerPiranha
get()
Returns the instance.static void
Main method.void
run()
Start method.void
service
(WebApplicationRequest request, WebApplicationResponse response) Service the request and response.
-
Constructor Details
-
IsolatedServerPiranha
public IsolatedServerPiranha()
-
-
Method Details
-
get
Returns the instance.- Returns:
- the instance
-
main
Main method.- Parameters:
arguments
- the arguments.
-
run
public void run()Start method. -
service
public void service(WebApplicationRequest request, WebApplicationResponse response) throws IOException, jakarta.servlet.ServletException Description copied from interface:Piranha
Service the request and response.- Specified by:
service
in interfacePiranha
- Parameters:
request
- the request.response
- the response.- Throws:
IOException
- when an I/O error occurs.jakarta.servlet.ServletException
- when a Servlet error occurs.
-