public class Request extends Object
| Constructor and Description |
|---|
Request() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String name,
String value)
Adds the header.
|
void |
addParameter(String name,
String value)
Adds the parameter.
|
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.
|
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 String getMethod()
public String getParameter(String name)
name - the namepublic int getParameterAsInt(String name)
name - the namepublic 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 © 2020. All rights reserved.