java.lang.Object
cloud.piranha.nano.NanoPiranhaBuilder
The builder so you can easily build instances of
NanoPiranha
.- Author:
- Manfred Riem ([email protected])
- See Also:
NanoPiranha
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build Piranha Nano.directoryResource(String directory)
Add a directory resource.Add a filter.filterInitParam(String filterName, String name, String value)
Set a filter init parameter.Set the Servlet.servletInitParam(String servletName, String name, String value)
Set a servlet init parameter.webApplication(WebApplication webApplication)
Set the web application.
-
Constructor Details
-
NanoPiranhaBuilder
public NanoPiranhaBuilder()Constructor.
-
-
Method Details
-
build
Build Piranha Nano.- Returns:
- our instance of Piranha Nano.
-
directoryResource
Add a directory resource.- Parameters:
directory
- the directory resource.- Returns:
- the builder.
-
filter
Add a filter.- Parameters:
filterName
- the filter name.filter
- the filter.- Returns:
- the builder.
-
filterInitParam
Set a filter init parameter.- Parameters:
filterName
- the filter name.name
- the name.value
- the value.- Returns:
- the builder.
-
servlet
Set the Servlet.- Parameters:
servletName
- the Servlet name.servlet
- the Servlet.- Returns:
- the builder.
-
servletInitParam
Set a servlet init parameter.- Parameters:
servletName
- the servlet name.name
- the name.value
- the value.- Returns:
- the builder.
-
webApplication
Set the web application.- Parameters:
webApplication
- the web application.- Returns:
- the builder.
-