railo.commons.net.http.httpclient4
Class HTTPResponse4Impl
java.lang.Object
railo.commons.net.http.HTTPResponseSupport
railo.commons.net.http.httpclient4.HTTPResponse4Impl
- All Implemented Interfaces:
- HTTPResponse
public class HTTPResponse4Impl
- extends HTTPResponseSupport
- implements HTTPResponse
Constructor Summary |
HTTPResponse4Impl(URL url,
org.apache.http.protocol.HttpContext context,
org.apache.http.client.methods.HttpUriRequest req,
org.apache.http.HttpResponse rsp)
|
HTTPResponse4Impl
public HTTPResponse4Impl(URL url,
org.apache.http.protocol.HttpContext context,
org.apache.http.client.methods.HttpUriRequest req,
org.apache.http.HttpResponse rsp)
getContentAsString
public String getContentAsString()
throws IOException
- Specified by:
getContentAsString
in interface HTTPResponse
- Throws:
IOException
getContentAsString
public String getContentAsString(String charset)
throws IOException
- Specified by:
getContentAsString
in interface HTTPResponse
- Throws:
IOException
getContentAsStream
public InputStream getContentAsStream()
throws IOException
- Specified by:
getContentAsStream
in interface HTTPResponse
- Throws:
IOException
getContentAsByteArray
public byte[] getContentAsByteArray()
throws IOException
- Specified by:
getContentAsByteArray
in interface HTTPResponse
- Throws:
IOException
getLastHeader
public Header getLastHeader(String name)
- Specified by:
getLastHeader
in interface HTTPResponse
getLastHeaderIgnoreCase
public Header getLastHeaderIgnoreCase(String name)
- Specified by:
getLastHeaderIgnoreCase
in interface HTTPResponse
getLastHeaderIgnoreCase
public static Header getLastHeaderIgnoreCase(org.apache.http.HttpResponse rsp,
String name)
getURL
public URL getURL()
- Specified by:
getURL
in interface HTTPResponse
getTargetURL
public URL getTargetURL()
getStatusCode
public int getStatusCode()
- Specified by:
getStatusCode
in interface HTTPResponse
getStatusText
public String getStatusText()
- Specified by:
getStatusText
in interface HTTPResponse
getProtocolVersion
public String getProtocolVersion()
- Specified by:
getProtocolVersion
in interface HTTPResponse
getStatusLine
public String getStatusLine()
- Specified by:
getStatusLine
in interface HTTPResponse
getAllHeaders
public Header[] getAllHeaders()
- Specified by:
getAllHeaders
in interface HTTPResponse
Copyright © 2012 Railo