Class IsolatedServerPiranha

java.lang.Object
cloud.piranha.server.isolated.IsolatedServerPiranha
All Implemented Interfaces:
Piranha, Runnable

public class IsolatedServerPiranha extends Object implements Piranha, Runnable
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 Details

    • IsolatedServerPiranha

      public IsolatedServerPiranha()
  • Method Details

    • get

      public static IsolatedServerPiranha get()
      Returns the instance.
      Returns:
      the instance
    • main

      public static void main(String[] arguments)
      Main method.
      Parameters:
      arguments - the arguments.
    • run

      public void run()
      Start method.
      Specified by:
      run in interface Runnable
    • 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 interface Piranha
      Parameters:
      request - the request.
      response - the response.
      Throws:
      IOException - when an I/O error occurs.
      jakarta.servlet.ServletException - when a Servlet error occurs.