org.webharvest.runtime.web
Class HttpResponseWrapper

java.lang.Object
  extended by org.webharvest.runtime.web.HttpResponseWrapper

public class HttpResponseWrapper
extends java.lang.Object

Class defines http server response.


Constructor Summary
HttpResponseWrapper(org.apache.commons.httpclient.HttpMethodBase method)
          Constructor - defines response result based on specified HttpMethodBase instance.
 
Method Summary
 byte[] getBody()
           
 java.io.InputStream getBodyAsInputStream()
           
 java.lang.String getCharset()
           
 long getContentLength()
           
 KeyValuePair<java.lang.String>[] getHeaders()
           
 java.lang.String getMimeType()
           
 int getStatusCode()
           
 java.lang.String getStatusText()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponseWrapper

public HttpResponseWrapper(org.apache.commons.httpclient.HttpMethodBase method)
Constructor - defines response result based on specified HttpMethodBase instance.

Parameters:
method -
Method Detail

getContentLength

public long getContentLength()

getCharset

public java.lang.String getCharset()

getMimeType

public java.lang.String getMimeType()

getBody

public byte[] getBody()

getBodyAsInputStream

public java.io.InputStream getBodyAsInputStream()

getHeaders

public KeyValuePair<java.lang.String>[] getHeaders()

getStatusCode

public int getStatusCode()

getStatusText

public java.lang.String getStatusText()