railo.commons.net.http.httpclient4
Class HTTPResponse4Impl

java.lang.Object
  extended by railo.commons.net.http.HTTPResponseSupport
      extended by 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)
           
 
Method Summary
 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()
           
 
Methods inherited from class railo.commons.net.http.HTTPResponseSupport
getCharset, getContentLength, getContentType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface railo.commons.net.http.HTTPResponse
getCharset, getContentLength, getContentType
 

Constructor Detail

HTTPResponse4Impl

public HTTPResponse4Impl(URL url,
                         org.apache.http.protocol.HttpContext context,
                         org.apache.http.client.methods.HttpUriRequest req,
                         org.apache.http.HttpResponse rsp)
Method Detail

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