public class HTTPResponse4Impl extends HTTPResponseSupport implements HTTPResponse
Constructor and Description |
---|
HTTPResponse4Impl(URL url,
org.apache.http.protocol.HttpContext context,
org.apache.http.client.methods.HttpUriRequest req,
org.apache.http.HttpResponse rsp) |
Modifier and Type | Method and Description |
---|---|
Header[] |
getAllHeaders() |
byte[] |
getContentAsByteArray() |
InputStream |
getContentAsStream() |
String |
getContentAsString() |
String |
getContentAsString(String charset) |
Header |
getLastHeader(String name) |
static Header |
getLastHeaderIgnoreCase(org.apache.http.HttpResponse rsp,
String name) |
Header |
getLastHeaderIgnoreCase(String name) |
String |
getProtocolVersion() |
int |
getStatusCode() |
String |
getStatusLine() |
String |
getStatusText() |
URL |
getTargetURL() |
URL |
getURL() |
getCharset, getContentLength, getContentType
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCharset, getContentLength, getContentType
public HTTPResponse4Impl(URL url, org.apache.http.protocol.HttpContext context, org.apache.http.client.methods.HttpUriRequest req, org.apache.http.HttpResponse rsp)
public String getContentAsString() throws IOException
getContentAsString
in interface HTTPResponse
IOException
public String getContentAsString(String charset) throws IOException
getContentAsString
in interface HTTPResponse
IOException
public InputStream getContentAsStream() throws IOException
getContentAsStream
in interface HTTPResponse
IOException
public byte[] getContentAsByteArray() throws IOException
getContentAsByteArray
in interface HTTPResponse
IOException
public Header getLastHeader(String name)
getLastHeader
in interface HTTPResponse
public Header getLastHeaderIgnoreCase(String name)
getLastHeaderIgnoreCase
in interface HTTPResponse
public static Header getLastHeaderIgnoreCase(org.apache.http.HttpResponse rsp, String name)
public URL getURL()
getURL
in interface HTTPResponse
public URL getTargetURL()
public int getStatusCode()
getStatusCode
in interface HTTPResponse
public String getStatusText()
getStatusText
in interface HTTPResponse
public String getProtocolVersion()
getProtocolVersion
in interface HTTPResponse
public String getStatusLine()
getStatusLine
in interface HTTPResponse
public Header[] getAllHeaders()
getAllHeaders
in interface HTTPResponse
Copyright © 2015 Lucee