构造器和说明 |
---|
HttpRequest() |
限定符和类型 | 方法和说明 |
---|---|
ConnectionConfig |
getConconfig()
返回http连接配置对象
|
Proxy |
getProxy()
返回代理
|
Response |
getResponse(CrawlDatum datum) |
URL |
getURL() |
void |
setConnectionConfig(ConnectionConfig config)
设置http连接配置对象
|
void |
setProxy(Proxy proxy)
设置代理
|
void |
setURL(URL url) |
public Response getResponse(CrawlDatum datum) throws Exception
getResponse
在接口中 Request
Exception
public void setProxy(Proxy proxy)
proxy
- 代理public Proxy getProxy()
public void setConnectionConfig(ConnectionConfig config)
config
- http连接配置对象public ConnectionConfig getConconfig()
Copyright © 2014. All Rights Reserved.