railo.commons.net.http
Interface HTTPResponse

All Known Implementing Classes:
HTTPResponse3Impl, HTTPResponse4Impl, HTTPResponseSupport

public interface HTTPResponse


Method Summary
 Header[] getAllHeaders()
           
 String getCharset()
           
 byte[] getContentAsByteArray()
           
 InputStream getContentAsStream()
           
 String getContentAsString()
           
 String getContentAsString(String charset)
           
 long getContentLength()
           
 ContentType getContentType()
           
 Header getLastHeader(String name)
           
 Header getLastHeaderIgnoreCase(String name)
           
 String getProtocolVersion()
           
 int getStatusCode()
           
 String getStatusLine()
           
 String getStatusText()
           
 URL getURL()
           
 

Method Detail

getContentAsString

String getContentAsString()
                          throws IOException
Throws:
IOException

getContentAsString

String getContentAsString(String charset)
                          throws IOException
Throws:
IOException

getContentAsStream

InputStream getContentAsStream()
                               throws IOException
Throws:
IOException

getContentAsByteArray

byte[] getContentAsByteArray()
                             throws IOException
Throws:
IOException

getContentType

ContentType getContentType()

getLastHeader

Header getLastHeader(String name)

getLastHeaderIgnoreCase

Header getLastHeaderIgnoreCase(String name)

getCharset

String getCharset()

getContentLength

long getContentLength()
                      throws IOException
Throws:
IOException

getURL

URL getURL()

getStatusCode

int getStatusCode()

getStatusText

String getStatusText()

getProtocolVersion

String getProtocolVersion()

getStatusLine

String getStatusLine()

getAllHeaders

Header[] getAllHeaders()


Copyright © 2012 Railo