Class NanoPiranha

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

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

    Fields
    Modifier and Type Field Description
    private java.util.LinkedList<Filter> filters
    Stores the filters.
    private Servlet servlet
    Stores the servlet.
    private cloud.piranha.webapp.api.WebApplication webApplication
    Stores the web application.
  • Constructor Summary

    Constructors
    Constructor Description
    NanoPiranha()
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    void addFilter​(Filter filter)
    Add a filter.
    java.util.List<Filter> getFilters()
    Get the filters.
    Servlet getServlet()
    Get the servlet.
    java.lang.String getVersion()
    Get the version.
    cloud.piranha.webapp.api.WebApplication getWebApplication()
    Get the web application.
    void service​(ServletRequest servletRequest, ServletResponse servletResponse)
    Service.
    void setServlet​(Servlet servlet)
    Set the servlet.
    void setWebApplication​(cloud.piranha.webapp.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 java.util.LinkedList<Filter> filters
      Stores the filters.
    • servlet

      private Servlet servlet
      Stores the servlet.
    • webApplication

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

    • NanoPiranha

      public NanoPiranha()
      Constructor.
  • Method Details

    • addFilter

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

      public java.util.List<Filter> getFilters()
      Get the filters.
      Returns:
      the filters.
    • getServlet

      public Servlet getServlet()
      Get the servlet.
      Returns:
      the servlet.
    • getVersion

      public java.lang.String getVersion()
      Get the version.
      Specified by:
      getVersion in interface Piranha
      Returns:
      the version.
    • getWebApplication

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

      public void service​(ServletRequest servletRequest, ServletResponse servletResponse) throws java.io.IOException, ServletException
      Service.
      Parameters:
      servletRequest - the request.
      servletResponse - the response.
      Throws:
      java.io.IOException - when an I/O error occurs.
      ServletException - when a Servlet error occurs.
    • setServlet

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

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