java.lang.Object
cloud.piranha.nano.NanoRequestBuilder
public class NanoRequestBuilder
extends java.lang.Object
The builder so you can easily build instances of
NanoRequest.- Author:
- Manfred Riem (mriem@manorrock.com)
- See Also:
NanoRequest
-
Field Summary
Fields Modifier and Type Field Description private NanoRequestrequestStores the request. -
Constructor Summary
Constructors Constructor Description NanoRequestBuilder()Constructor. -
Method Summary
Modifier and Type Method Description NanoRequestbuild()Build the request.NanoRequestBuilderheader(java.lang.String name, java.lang.String value)Add a header.NanoRequestBuildermethod(java.lang.String method)Set the method.NanoRequestBuilderqueryString(java.lang.String queryString)Set the query string.NanoRequestBuilderservletPath(java.lang.String servletPath)Set the servlet path.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.
-