public class Request extends CommonObject
| Constructor and Description |
|---|
Request() |
Request(String url,
String callBack) |
Request(String url,
String callBack,
HttpMethod httpMethod,
Map<String,String> params,
Map<String,Object> meta) |
| Modifier and Type | Method and Description |
|---|---|
static Request |
build(String url,
String callBack) |
static Request |
build(String url,
String callBack,
HttpMethod httpMethod,
Map<String,String> params,
Map<String,Object> meta) |
String |
getCallBack() |
String |
getCrawlerName() |
HttpMethod |
getHttpMethod() |
Map<String,Object> |
getMeta() |
Map<String,String> |
getParams() |
String |
getUrl() |
boolean |
isStop() |
void |
setCallBack(String callBack) |
void |
setCrawlerName(String crawlerName) |
void |
setHttpMethod(HttpMethod httpMethod) |
void |
setMeta(Map<String,Object> meta) |
void |
setParams(Map<String,String> params) |
void |
setStop(boolean stop) |
void |
setUrl(String url) |
toStringpublic Request(String url, String callBack, HttpMethod httpMethod, Map<String,String> params, Map<String,Object> meta)
public Request()
public static Request build(String url, String callBack, HttpMethod httpMethod, Map<String,String> params, Map<String,Object> meta)
public String getUrl()
public void setUrl(String url)
public HttpMethod getHttpMethod()
public void setHttpMethod(HttpMethod httpMethod)
public String getCallBack()
public void setCallBack(String callBack)
public String getCrawlerName()
public void setCrawlerName(String crawlerName)
public boolean isStop()
public void setStop(boolean stop)
Copyright © 2015. All Rights Reserved.