org.webharvest.runtime.web
Class HttpResponseWrapper
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpResponseWrapper
public HttpResponseWrapper(org.apache.commons.httpclient.HttpMethodBase method)
- Constructor - defines response result based on specified HttpMethodBase instance.
- Parameters:
method -
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()