Package org.webharvest.runtime.web
Class HttpInfo
- java.lang.Object
-
- org.webharvest.runtime.web.HttpInfo
-
public class HttpInfo extends Object
Class offers access to HTTP client and response details to the user.
-
-
Field Summary
Fields Modifier and Type Field Description String
charset
org.apache.commons.httpclient.HttpClient
client
long
contentLength
KeyValuePair<String>[]
headers
String
mimeType
int
statusCode
String
statusText
long
totalLength
int
totalResponses
-
Constructor Summary
Constructors Constructor Description HttpInfo(org.apache.commons.httpclient.HttpClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHeader(String key)
String[]
getHeaders(String key)
void
setResponse(HttpResponseWrapper wrapper)
-
-
-
Field Detail
-
client
public final org.apache.commons.httpclient.HttpClient client
-
contentLength
public long contentLength
-
charset
public String charset
-
mimeType
public String mimeType
-
headers
public KeyValuePair<String>[] headers
-
statusCode
public int statusCode
-
statusText
public String statusText
-
totalLength
public long totalLength
-
totalResponses
public int totalResponses
-
-
Method Detail
-
setResponse
public void setResponse(HttpResponseWrapper wrapper)
-
-