public class Response extends CommonObject
| 构造器和说明 |
|---|
Response() |
| 限定符和类型 | 方法和说明 |
|---|---|
cn.wanghaomiao.xpath.model.JXDocument |
document() |
BodyType |
getBodyType() |
String |
getCharset() |
String |
getContent() |
byte[] |
getData() |
Map<String,String> |
getMeta() |
Map<String,String> |
getParams() |
String |
getRealUrl() |
String |
getReferer() |
Request |
getRequest() |
SeimiHttpType |
getSeimiHttpType() |
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 |
setMeta(Map<String,String> meta) |
void |
setParams(Map<String,String> params) |
void |
setRealUrl(String realUrl) |
void |
setReferer(String referer) |
void |
setRequest(Request request) |
void |
setSeimiHttpType(SeimiHttpType seimiHttpType) |
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 Request getRequest()
public void setRequest(Request request)
public String getReferer()
public void setReferer(String referer)
public String getRealUrl()
public void setRealUrl(String realUrl)
public SeimiHttpType getSeimiHttpType()
public void setSeimiHttpType(SeimiHttpType seimiHttpType)
public <T> T render(Class<T> bean) throws Exception
T - bean - Exceptionpublic cn.wanghaomiao.xpath.model.JXDocument document()
public void saveTo(File targetFile)
Copyright © 2017. All Rights Reserved.