public class Request extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
CYCLE_TRIED_TIMES |
Modifier and Type | Method and Description |
---|---|
Request |
addCookie(String name,
String value) |
Request |
addHeader(String name,
String value) |
boolean |
equals(Object o) |
String |
getCharset() |
Map<String,String> |
getCookies() |
Object |
getExtra(String key) |
Map<String,Object> |
getExtras() |
Map<String,String> |
getHeaders() |
String |
getMethod()
The http method of the request.
|
long |
getPriority() |
HttpRequestBody |
getRequestBody() |
String |
getUrl() |
int |
hashCode() |
boolean |
isBinaryContent() |
Request |
putExtra(String key,
Object value) |
Request |
setBinaryContent(boolean binaryContent) |
Request |
setCharset(String charset) |
Request |
setExtras(Map<String,Object> extras) |
Request |
setMethod(String method) |
Request |
setPriority(long priority)
Set the priority of request for sorting.
Need a scheduler supporting priority. |
void |
setRequestBody(HttpRequestBody requestBody) |
Request |
setUrl(String url) |
String |
toString() |
public static final String CYCLE_TRIED_TIMES
public Request()
public Request(String url)
public long getPriority()
public Request setPriority(long priority)
priority
- priorityPriorityScheduler
public String getUrl()
public String getMethod()
HttpConstant.Method
public HttpRequestBody getRequestBody()
public void setRequestBody(HttpRequestBody requestBody)
public boolean isBinaryContent()
public Request setBinaryContent(boolean binaryContent)
public String getCharset()
Copyright © 2017. All rights reserved.