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>filtersStores the filters.private ServletservletStores the servlet.private cloud.piranha.webapp.api.WebApplicationwebApplicationStores the web application. -
Constructor Summary
Constructors Constructor Description NanoPiranha()Constructor. -
Method Summary
Modifier and Type Method Description voidaddFilter(Filter filter)Add a filter.java.util.List<Filter>getFilters()Get the filters.ServletgetServlet()Get the servlet.java.lang.StringgetVersion()Get the version.cloud.piranha.webapp.api.WebApplicationgetWebApplication()Get the web application.voidservice(ServletRequest servletRequest, ServletResponse servletResponse)Service.voidsetServlet(Servlet servlet)Set the servlet.voidsetWebApplication(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
Stores the filters. -
servlet
Stores the servlet. -
webApplication
private cloud.piranha.webapp.api.WebApplication webApplicationStores the web application.
-
-
Constructor Details
-
NanoPiranha
public NanoPiranha()Constructor.
-
-
Method Details
-
addFilter
Add a filter.- Parameters:
filter- the filter.
-
getFilters
Get the filters.- Returns:
- the filters.
-
getServlet
Get the servlet.- Returns:
- the servlet.
-
getVersion
public java.lang.String getVersion()Get the version.- Specified by:
getVersionin interfacePiranha- 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, ServletExceptionService.- Parameters:
servletRequest- the request.servletResponse- the response.- Throws:
java.io.IOException- when an I/O error occurs.ServletException- when a Servlet error occurs.
-
setServlet
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.
-