org.w3c.mwi.mobileok.basic
Class HTTPRedirect

java.lang.Object
  extended by 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

Field Summary
(package private) static int NETWORK_ERROR
           
 
Constructor Summary
HTTPRedirect(org.apache.commons.httpclient.HttpMethod httpMethod)
           
HTTPRedirect(org.apache.commons.httpclient.HttpMethod httpMethod, HTTPErrorsType httpsErrorCode)
           
HTTPRedirect(java.net.URI uri, java.lang.String errorReason)
           
 
Method Summary
 HTTPErrorsType getHttpsError()
           
(package private)  byte[] getRawBody()
           
(package private)  int getRawBodySize()
           
(package private)  org.apache.commons.httpclient.Header[] getRawRequestHeaders()
           
(package private)  org.apache.commons.httpclient.Header[] getRawResponseHeaders()
           
(package private)  java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
           
(package private)  java.util.Map<java.lang.String,java.lang.String> getResponseHeaders()
           
(package private)  java.lang.String getResponseProtocol()
           
(package private)  java.lang.String getResponseReason()
           
(package private)  int getResponseStatus()
           
(package private)  java.net.URI getUri()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NETWORK_ERROR

static final int NETWORK_ERROR
See Also:
Constant Field Values
Constructor Detail

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)
Method Detail

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()