java.lang.Object
cloud.piranha.nano.NanoPiranhaBuilder
The builder so you can easily build instances of
NanoPiranha.- Author:
- Manfred Riem (mriem@manorrock.com)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionStores the filter init parameters map.private final LinkedHashMap<String,jakarta.servlet.Filter> Stores the filter map.private final List<cloud.piranha.resource.api.Resource>Stores the resources.private jakarta.servlet.ServletStores the servlet.Stores the servlet init parameters.private StringStores the servlet name.private cloud.piranha.core.api.WebApplicationStores the web application. -
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(cloud.piranha.core.api.WebApplication webApplication) Set the web application.
-
Field Details
-
filterInitParameters
Stores the filter init parameters map. -
filters
Stores the filter map. -
resources
Stores the resources. -
servletInitParameters
Stores the servlet init parameters. -
servlet
private jakarta.servlet.Servlet servletStores the servlet. -
servletName
Stores the servlet name. -
webApplication
private cloud.piranha.core.api.WebApplication webApplicationStores 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.
-