public class Response extends CommonObject
| Constructor and Description |
|---|
Response() |
| Modifier and Type | Method and Description |
|---|---|
cn.wanghaomiao.xpath.model.JXDocument |
document() |
BodyType |
getBodyType() |
String |
getCharset() |
String |
getContent() |
byte[] |
getData() |
org.apache.http.HttpResponse |
getHttpResponse() |
Map<String,Object> |
getMeta() |
Map<String,String> |
getParams() |
String |
getRealUrl() |
String |
getReferer() |
org.apache.http.HttpEntity |
getReponseEntity() |
Request |
getRequest() |
String |
getUrl() |
<T> T |
render(Class<T> bean)
通过bean中定义的Xpath注解进行自动填充
|
void |
saveTo(File targetFile) |
void |
setBodyType(BodyType bodyType) |
void |
setCharset(String charset) |
void |
setContent(String content) |
void |
setData(byte[] data) |
void |
setHttpResponse(org.apache.http.HttpResponse httpResponse) |
void |
setMeta(Map<String,Object> meta) |
void |
setParams(Map<String,String> params) |
void |
setRealUrl(String realUrl) |
void |
setReferer(String referer) |
void |
setReponseEntity(org.apache.http.HttpEntity reponseEntity) |
void |
setRequest(Request request) |
void |
setUrl(String url) |
toStringpublic byte[] getData()
public void setData(byte[] data)
public BodyType getBodyType()
public void setBodyType(BodyType bodyType)
public String getCharset()
public void setCharset(String charset)
public String getContent()
public void setContent(String content)
public String getUrl()
public void setUrl(String url)
public org.apache.http.HttpResponse getHttpResponse()
public void setHttpResponse(org.apache.http.HttpResponse httpResponse)
public org.apache.http.HttpEntity getReponseEntity()
public void setReponseEntity(org.apache.http.HttpEntity reponseEntity)
public Request getRequest()
public void setRequest(Request request)
public String getReferer()
public void setReferer(String referer)
public String getRealUrl()
public void setRealUrl(String realUrl)
public <T> T render(Class<T> bean) throws Exception
T - bean - Exceptionpublic cn.wanghaomiao.xpath.model.JXDocument document()
public void saveTo(File targetFile)
Copyright © 2015. All Rights Reserved.