org.webharvest.runtime.web
Class HttpInfo

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

public class HttpInfo
extends java.lang.Object

Class offers access to HTTP client and response details to the user.


Field Summary
 java.lang.String charset
           
 org.apache.commons.httpclient.HttpClient client
           
 long contentLength
           
 KeyValuePair<java.lang.String>[] headers
           
 java.lang.String mimeType
           
 int statusCode
           
 java.lang.String statusText
           
 long totalLength
           
 int totalResponses
           
 
Constructor Summary
HttpInfo(org.apache.commons.httpclient.HttpClient client)
           
 
Method Summary
 java.lang.String getHeader(java.lang.String key)
           
 java.lang.String[] getHeaders(java.lang.String key)
           
 void setResponse(HttpResponseWrapper wrapper)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

public org.apache.commons.httpclient.HttpClient client

contentLength

public long contentLength

charset

public java.lang.String charset

mimeType

public java.lang.String mimeType

headers

public KeyValuePair<java.lang.String>[] headers

statusCode

public int statusCode

statusText

public java.lang.String statusText

totalLength

public long totalLength

totalResponses

public int totalResponses
Constructor Detail

HttpInfo

public HttpInfo(org.apache.commons.httpclient.HttpClient client)
Method Detail

setResponse

public void setResponse(HttpResponseWrapper wrapper)

getHeader

public java.lang.String getHeader(java.lang.String key)

getHeaders

public java.lang.String[] getHeaders(java.lang.String key)