net.oauth.http
Class HttpResponseMessage

java.lang.Object
  extended by net.oauth.http.HttpMessage
      extended by net.oauth.http.HttpResponseMessage
Direct Known Subclasses:
HttpMessageDecoder, URLConnectionResponse

public abstract class HttpResponseMessage
extends HttpMessage

An HTTP response.

Author:
John Kristian

Field Summary
static java.lang.String EOL
          The standard end-of-line marker in an HTTP message.
static java.lang.String LOCATION
          The name of a dump entry whose value is the response Location header.
static java.lang.String STATUS_CODE
          The name of a dump entry whose value is the HTTP status code.
static int STATUS_OK
          The statusCode that indicates a normal outcome.
 
Fields inherited from class net.oauth.http.HttpMessage
ACCEPT_ENCODING, body, CONTENT_ENCODING, CONTENT_LENGTH, CONTENT_TYPE, DEFAULT_CHARSET, headers, method, REQUEST, RESPONSE, url
 
Constructor Summary
protected HttpResponseMessage(java.lang.String method, java.net.URL url)
           
 
Method Summary
 void dump(java.util.Map<java.lang.String,java.lang.Object> into)
          Put a description of this message and its origins into the given Map.
abstract  int getStatusCode()
           
 
Methods inherited from class net.oauth.http.HttpMessage
getBody, getContentCharset, getHeader, newRequest, openBody, removeHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCATION

public static final java.lang.String LOCATION
The name of a dump entry whose value is the response Location header.

See Also:
Constant Field Values

STATUS_CODE

public static final java.lang.String STATUS_CODE
The name of a dump entry whose value is the HTTP status code.

See Also:
Constant Field Values

STATUS_OK

public static final int STATUS_OK
The statusCode that indicates a normal outcome.

See Also:
Constant Field Values

EOL

public static final java.lang.String EOL
The standard end-of-line marker in an HTTP message.

See Also:
Constant Field Values
Constructor Detail

HttpResponseMessage

protected HttpResponseMessage(java.lang.String method,
                              java.net.URL url)
Method Detail

dump

public void dump(java.util.Map<java.lang.String,java.lang.Object> into)
          throws java.io.IOException
Description copied from class: HttpMessage
Put a description of this message and its origins into the given Map.

Overrides:
dump in class HttpMessage
Throws:
java.io.IOException

getStatusCode

public abstract int getStatusCode()
                           throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.