Class NanoPiranha

java.lang.Object
cloud.piranha.nano.NanoPiranha
All Implemented Interfaces:
cloud.piranha.core.api.Piranha

public class NanoPiranha extends Object implements cloud.piranha.core.api.Piranha
The smallest version of Piranha in our lineup.
Author:
Manfred Riem (mriem@manorrock.com)
See Also:
  • cloud.piranha.core.api
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final LinkedList<jakarta.servlet.Filter>
    Stores the filters.
    private jakarta.servlet.Servlet
    Stores the servlet.
    private cloud.piranha.core.api.WebApplication
    Stores the web application.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addFilter(jakarta.servlet.Filter filter)
    Add a filter.
    List<jakarta.servlet.Filter>
    Returns the filters.
    jakarta.servlet.Servlet
    Returns the servlet.
    cloud.piranha.core.api.WebApplication
    Returns the web application.
    void
    service(cloud.piranha.core.api.WebApplicationRequest request, cloud.piranha.core.api.WebApplicationResponse response)
     
    void
    setServlet(jakarta.servlet.Servlet servlet)
    Set the servlet.
    void
    setWebApplication(cloud.piranha.core.api.WebApplication webApplication)
    Set the web application.

    Methods inherited from class java.lang.Object

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

    • filters

      private final LinkedList<jakarta.servlet.Filter> filters
      Stores the filters.
    • servlet

      private jakarta.servlet.Servlet servlet
      Stores the servlet.
    • webApplication

      private cloud.piranha.core.api.WebApplication webApplication
      Stores the web application.
  • Constructor Details

    • NanoPiranha

      public NanoPiranha()
      Constructor.
  • Method Details

    • addFilter

      public void addFilter(jakarta.servlet.Filter filter)
      Add a filter.
      Parameters:
      filter - the filter.
    • getFilters

      public List<jakarta.servlet.Filter> getFilters()
      Returns the filters.
      Returns:
      the filters
    • getServlet

      public jakarta.servlet.Servlet getServlet()
      Returns the servlet.
      Returns:
      the servlet
    • getWebApplication

      public cloud.piranha.core.api.WebApplication getWebApplication()
      Returns the web application.
      Returns:
      the web application
    • service

      public void service(cloud.piranha.core.api.WebApplicationRequest request, cloud.piranha.core.api.WebApplicationResponse response) throws IOException, jakarta.servlet.ServletException
      Specified by:
      service in interface cloud.piranha.core.api.Piranha
      Throws:
      IOException
      jakarta.servlet.ServletException
    • setServlet

      public void setServlet(jakarta.servlet.Servlet servlet)
      Set the servlet.
      Parameters:
      servlet - the servlet.
    • setWebApplication

      public void setWebApplication(cloud.piranha.core.api.WebApplication webApplication)
      Set the web application.
      Parameters:
      webApplication - the web application.