org.w3c.mwi.mobileok.basic
Class HTTPRedirect
java.lang.Object
org.w3c.mwi.mobileok.basic.HTTPRedirect
final class HTTPRedirect
- extends java.lang.Object
Represents an HTTP exchange, request and response.
The term HTTPRedirect
may not be the best one one
could think of because the class is not only used by the
HTTPResource
class to represent intermediary redirections that
might be needed to retrieve the final resource, but also to represent the
final HTTP exchange and an eventual final network error.
- Version:
- $Revision: 1.1 $
- Author:
- The W3C mobileOK Checker Task Force
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NETWORK_ERROR
static final int NETWORK_ERROR
- See Also:
- Constant Field Values
HTTPRedirect
HTTPRedirect(org.apache.commons.httpclient.HttpMethod httpMethod)
throws java.io.IOException
- Throws:
java.io.IOException
HTTPRedirect
HTTPRedirect(org.apache.commons.httpclient.HttpMethod httpMethod,
HTTPErrorsType httpsErrorCode)
throws java.io.IOException
- Throws:
java.io.IOException
HTTPRedirect
HTTPRedirect(java.net.URI uri,
java.lang.String errorReason)
getRawBody
byte[] getRawBody()
getRawBodySize
int getRawBodySize()
getRawRequestHeaders
org.apache.commons.httpclient.Header[] getRawRequestHeaders()
getRawResponseHeaders
org.apache.commons.httpclient.Header[] getRawResponseHeaders()
getRequestHeaders
java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
getResponseHeaders
java.util.Map<java.lang.String,java.lang.String> getResponseHeaders()
getResponseStatus
int getResponseStatus()
getResponseProtocol
java.lang.String getResponseProtocol()
getResponseReason
java.lang.String getResponseReason()
getUri
java.net.URI getUri()
getHttpsError
public HTTPErrorsType getHttpsError()