java.lang.Object
cloud.piranha.nano.NanoRequestBuilder
The builder so you can easily build instances of
NanoRequest.- Author:
- Manfred Riem (mriem@manorrock.com)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the request.Add a header.Set the method.queryString(String queryString) Set the query string.servletPath(String servletPath) Set the servlet path.
-
Field Details
-
request
Stores the request.
-
-
Constructor Details
-
NanoRequestBuilder
public NanoRequestBuilder()Constructor.
-
-
Method Details
-
build
Build the request.- Returns:
- the request.
-
header
Add a header.- Parameters:
name- the name.value- the value.- Returns:
- the builder.
-
method
Set the method.- Parameters:
method- the method.- Returns:
- the builder.
-
queryString
Set the query string.- Parameters:
queryString- the query string.- Returns:
- the builder.
-
servletPath
Set the servlet path.- Parameters:
servletPath- the servlet path.- Returns:
- the builder.
-