java.lang.Object
cloud.piranha.nano.NanoPiranha
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionprivate final LinkedList<jakarta.servlet.Filter>Stores the filters.private jakarta.servlet.ServletStores the servlet.private cloud.piranha.core.api.WebApplicationStores the web application. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFilter(jakarta.servlet.Filter filter) Add a filter.List<jakarta.servlet.Filter>Returns the filters.jakarta.servlet.ServletReturns the servlet.cloud.piranha.core.api.WebApplicationReturns the web application.voidservice(cloud.piranha.core.api.WebApplicationRequest request, cloud.piranha.core.api.WebApplicationResponse response) voidsetServlet(jakarta.servlet.Servlet servlet) Set the servlet.voidsetWebApplication(cloud.piranha.core.api.WebApplication webApplication) Set the web application.
-
Field Details
-
filters
Stores the filters. -
servlet
private jakarta.servlet.Servlet servletStores the servlet. -
webApplication
private cloud.piranha.core.api.WebApplication webApplicationStores 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
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:
servicein interfacecloud.piranha.core.api.Piranha- Throws:
IOExceptionjakarta.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.
-