public class Request extends Object implements Cloneable
| Modifier and Type | Method and Description | 
|---|---|
| void | addHeader(String name,
         String value)Adds the header. | 
| void | addParameter(String name,
            String value)Adds the parameter. | 
| Request | clone() | 
| Content | getContent()Gets the content. | 
| String | getHeader(String name)Gets the value of a specific header. | 
| List<Header> | getHeaders()Gets the headers. | 
| String | getMethod()Gets the method. | 
| String | getParameter(String name)Gets the value of a specific parameter. | 
| boolean | getParameterAsBoolean(String name) | 
| int | getParameterAsInt(String name)Gets the parameter as integer. | 
| List<Parameter> | getParameters()Gets the parameters. | 
| void | setContent(Content content)Sets the content. | 
| void | setHeaders(List<Header> headers)Sets the headers. | 
| void | setMethod(String method)Sets the method. | 
| void | setParameters(List<Parameter> parameters)Sets the parameters. | 
| String | toString() | 
public Request()
public Request(Request copy)
public String getMethod()
public String getParameter(String name)
name - the namepublic int getParameterAsInt(String name)
name - the namepublic boolean getParameterAsBoolean(String name)
public String getHeader(String name)
name - the namepublic Content getContent()
public void setMethod(String method)
method - the new methodpublic void setParameters(List<Parameter> parameters)
parameters - the new parameterspublic void addParameter(String name, String value)
name - the namevalue - the valuepublic void setHeaders(List<Header> headers)
headers - the new headerspublic void addHeader(String name, String value)
name - the namevalue - the valuepublic void setContent(Content content)
content - the new contentCopyright © 2021. All rights reserved.