Package cloud.piranha.nano
Class NanoPiranha
- java.lang.Object
-
- cloud.piranha.nano.NanoPiranha
-
- All Implemented Interfaces:
Piranha
public class NanoPiranha extends Object implements Piranha
The smallest version of Piranha in our lineup.- Author:
- Manfred Riem ([email protected])
- See Also:
cloud.piranha.webapp.api
-
-
Constructor Summary
Constructors Constructor Description NanoPiranha()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFilter(Filter filter)
Add a filter.List<Filter>
getFilters()
Get the filters.Servlet
getServlet()
Get the servlet.String
getVersion()
Get the version.WebApplication
getWebApplication()
Get the web application.void
service(ServletRequest servletRequest, ServletResponse servletResponse)
Service.void
setServlet(Servlet servlet)
Set the servlet.void
setWebApplication(WebApplication webApplication)
Set the web application.
-
-
-
Method Detail
-
addFilter
public void addFilter(Filter filter)
Add a filter.- Parameters:
filter
- the filter.
-
getServlet
public Servlet getServlet()
Get the servlet.- Returns:
- the servlet.
-
getVersion
public String getVersion()
Get the version.- Specified by:
getVersion
in interfacePiranha
- Returns:
- the version.
-
getWebApplication
public WebApplication getWebApplication()
Get the web application.- Returns:
- the web application.
-
service
public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws IOException, ServletException
Service.- Parameters:
servletRequest
- the request.servletResponse
- the response.- Throws:
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(WebApplication webApplication)
Set the web application.- Parameters:
webApplication
- the web application.
-
-