Class NanoRequestBuilder


  • public class NanoRequestBuilder
    extends Object
    The builder so you can easily build instances of NanoRequest.
    Author:
    Manfred Riem (mriem@manorrock.com)
    See Also:
    NanoRequest
    • Constructor Detail

      • NanoRequestBuilder

        public NanoRequestBuilder()
        Constructor.
    • Method Detail

      • 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.