public class Request extends Object
| Constructor and Description |
|---|
Request() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCookie(String key,
String value)
Add a cookie couple in the cookies.
|
boolean |
addHeader(String key,
String value)
Add a header couple in the headers.
|
Authorization |
getAuthorization()
Authorization value getter.
|
String |
getBody()
Body value getter.
|
org.apache.http.entity.ContentType |
getContentType() |
List<HttpCookie> |
getCookies()
Cookies value getter.
|
List<org.apache.http.Header> |
getHeaders()
Headers value getter.
|
Proxy |
getProxy()
Proxy value getter.
|
HTTPMethod |
getRestMethod()
RESTHTTPMethod value getter.
|
SSL |
getSsl()
SSL value getter.
|
URL |
getUrl()
URL value getter.
|
boolean |
isIgnore()
Ignore value getter.
|
boolean |
isRedirect()
Redirect value getter.
|
void |
setAuthorization(Authorization authorization)
Authorization value setter.
|
void |
setBody(String body)
Body value setter.
|
void |
setContentType(org.apache.http.entity.ContentType contentType) |
void |
setIgnore(boolean ignore)
Ignore value setter.
|
void |
setProxy(Proxy proxy)
Proxy value setter.
|
void |
setRedirect(boolean redirect)
Redirect value setter.
|
void |
setRestMethod(HTTPMethod restMethod)
RESTHTTPMethod value setter.
|
void |
setSsl(SSL ssl)
SSL value setter.
|
void |
setUrl(URL url)
The URL value setter.
|
String |
toString() |
public URL getUrl()
public void setUrl(URL url)
url - URL value.public HTTPMethod getRestMethod()
public void setRestMethod(HTTPMethod restMethod)
restMethod - The RESTHTTPMethod new value.public Authorization getAuthorization()
public void setAuthorization(Authorization authorization)
authorization - The authorization new value.public SSL getSsl()
public void setSsl(SSL ssl)
ssl - The SSL new value.public Proxy getProxy()
public void setProxy(Proxy proxy)
proxy - The Proxy new value.public boolean isRedirect()
public void setRedirect(boolean redirect)
redirect - The redirect new value.public boolean isIgnore()
public void setIgnore(boolean ignore)
ignore - The ignore new value.public List<org.apache.http.Header> getHeaders()
public List<HttpCookie> getCookies()
public boolean addHeader(String key, String value)
key - The key of the new header.value - The lonely value of the new header.public boolean addCookie(String key, String value)
key - The key of the new cookie.value - The lonely value of the new cookie.public String getBody()
public void setBody(String body)
body - The body new value.public void setContentType(org.apache.http.entity.ContentType contentType)
public org.apache.http.entity.ContentType getContentType()
Copyright © 2021. All rights reserved.