Class NanoRequestBuilder

java.lang.Object
cloud.piranha.nano.NanoRequestBuilder

public class NanoRequestBuilder extends Object
The builder so you can easily build instances of NanoRequest.
Author:
Manfred Riem ([email protected])
See Also:
NanoRequest
  • Constructor Details

    • NanoRequestBuilder

      public NanoRequestBuilder()
      Constructor.
  • Method Details

    • build

      public NanoRequest build()
      Build the request.
      Returns:
      the request.
    • header

      public NanoRequestBuilder header(String name, String value)
      Add a header.
      Parameters:
      name - the name.
      value - the value.
      Returns:
      the builder.
    • method

      public NanoRequestBuilder method(String method)
      Set the method.
      Parameters:
      method - the method.
      Returns:
      the builder.
    • queryString

      public NanoRequestBuilder queryString(String queryString)
      Set the query string.
      Parameters:
      queryString - the query string.
      Returns:
      the builder.
    • servletPath

      public NanoRequestBuilder servletPath(String servletPath)
      Set the servlet path.
      Parameters:
      servletPath - the servlet path.
      Returns:
      the builder.