Class IsolatedServerPiranha

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

@Deprecated(since="22.11.0", forRemoval=true) public class IsolatedServerPiranha extends Object implements Piranha, Runnable
Deprecated, for removal: This API element is subject to removal in a future version.
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.

Please use the cloud.pirnaha.dist.isolated instead of this module.

Author:
Manfred Riem ([email protected]), Arjan Tijms
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the instance.
    static void
    main(String[] arguments)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Main method.
    void
    run()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Start method.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Service the request and response.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IsolatedServerPiranha

      public IsolatedServerPiranha()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • get

      public static IsolatedServerPiranha get()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the instance.
      Returns:
      the instance
    • main

      public static void main(String[] arguments)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Main method.
      Parameters:
      arguments - the arguments.
    • run

      public void run()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Start method.
      Specified by:
      run in interface Runnable
    • service

      public void service(WebApplicationRequest request, WebApplicationResponse response) throws IOException, jakarta.servlet.ServletException
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.