public class HttpResponse extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static org.slf4j.Logger |
LOG |
| 构造器和说明 |
|---|
HttpResponse(URL url) |
public HttpResponse(URL url)
public URL url()
public void url(URL url)
@Deprecated public URL getUrl()
@Deprecated public void setUrl(URL url)
public String decode()
@Deprecated public String getHtml(String charset)
@Deprecated public String getHtmlByCharsetDetect()
public int code()
public void code(int code)
@Deprecated public int getCode()
@Deprecated public void setCode(int code)
public boolean isNotFound()
public void setNotFound(boolean notFound)
@Deprecated public List<String> getHeader(String name)
@Deprecated public void setHeaders(Map<String,List<String>> headers)
@Deprecated public Map<String,List<String>> getHeaders()
public byte[] content()
public void content(byte[] content)
@Deprecated public byte[] getContent()
@Deprecated public void setContent(byte[] content)
public String contentType()
@Deprecated public String getContentType()
public boolean isRedirect()
public void setRedirect(boolean redirect)
public URL getRealUrl()
public void setRealUrl(URL realUrl)
public String getHtml()
public void setHtml(String html)
Copyright © 2017. All Rights Reserved.