Class Request

    • Constructor Detail

      • Request

        public Request()
      • Request

        public Request​(Request copy)
    • Method Detail

      • getMethod

        public String getMethod()
        Gets the method.
        Returns:
        the method
      • getParameters

        public List<Parameter> getParameters()
        Gets the parameters.
        Returns:
        the parameters
      • getParameter

        public String getParameter​(String name)
        Gets the value of a specific parameter.
        Parameters:
        name - the name
        Returns:
        the parameter
      • getParameterAsInt

        public int getParameterAsInt​(String name)
        Gets the parameter as integer.
        Parameters:
        name - the name
        Returns:
        the parameter value as integer
      • getParameterAsBoolean

        public boolean getParameterAsBoolean​(String name)
      • getHeaders

        public List<Header> getHeaders()
        Gets the headers.
        Returns:
        the headers
      • getHeader

        public String getHeader​(String name)
        Gets the value of a specific header.
        Parameters:
        name - the name
        Returns:
        the header value
      • getContent

        public Content getContent()
        Gets the content.
        Returns:
        the content
      • setMethod

        public void setMethod​(String method)
        Sets the method.
        Parameters:
        method - the new method
      • setParameters

        public void setParameters​(List<Parameter> parameters)
        Sets the parameters.
        Parameters:
        parameters - the new parameters
      • addParameter

        public void addParameter​(String name,
                                 String value)
        Adds the parameter.
        Parameters:
        name - the name
        value - the value
      • setHeaders

        public void setHeaders​(List<Header> headers)
        Sets the headers.
        Parameters:
        headers - the new headers
      • addHeader

        public void addHeader​(String name,
                              String value)
        Adds the header.
        Parameters:
        name - the name
        value - the value
      • setContent

        public void setContent​(Content content)
        Sets the content.
        Parameters:
        content - the new content