org.abstracthorizon.danube.http
Class Status

java.lang.Object
  extended by org.abstracthorizon.danube.http.Status

public class Status
extends Object

This class descibes HTTP response status.

Author:
Daniel Sendula

Field Summary
static Status BAD_REQUEST
           
protected  String code
          Response code
static Status CONFLICT
           
static Status CONTINUE
           
static Status CREATED
           
static Status EXPECTATION_FAILED
           
static Status FORBIDDEN
           
static Status FOUND
           
static Status GONE
           
static Status INTERNAL_SERVER_ERROR
           
static Status LENGTH_REQUIRED
           
protected  String message
          Response message
static Status METHOD_NOT_ALLOWED
           
static Status MOVED_PERMANENTLY
           
static Status NO_CONTENT
           
static Status NOT_FOUND
           
static Status NOT_IMPLEMENTED
           
static Status OK
           
static Status PARTIAL_CONTENT
           
static Status PRECONDITION_FAILED
           
static Status RANGE_NOT_SATISFIABLE
           
static Status SEE_OTHER
           
static Status UNAUTHORIZED
           
static Status UNSUPPORTED_MEDIA_TYPE
           
 
Constructor Summary
Status()
          Constructor
Status(String statusCode, String statusMessage)
          Constructor
 
Method Summary
 String getCode()
          Returns status code
 String getFullStatus()
          Returns full status (code, space, message)
 String getMessage()
          Returns status message
 String toString()
          Returns status as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONTINUE

public static final Status CONTINUE

OK

public static final Status OK

CREATED

public static final Status CREATED

NO_CONTENT

public static final Status NO_CONTENT

PARTIAL_CONTENT

public static final Status PARTIAL_CONTENT

MOVED_PERMANENTLY

public static final Status MOVED_PERMANENTLY

FOUND

public static final Status FOUND

SEE_OTHER

public static final Status SEE_OTHER

BAD_REQUEST

public static final Status BAD_REQUEST

UNAUTHORIZED

public static final Status UNAUTHORIZED

FORBIDDEN

public static final Status FORBIDDEN

NOT_FOUND

public static final Status NOT_FOUND

METHOD_NOT_ALLOWED

public static final Status METHOD_NOT_ALLOWED

CONFLICT

public static final Status CONFLICT

GONE

public static final Status GONE

LENGTH_REQUIRED

public static final Status LENGTH_REQUIRED

PRECONDITION_FAILED

public static final Status PRECONDITION_FAILED

UNSUPPORTED_MEDIA_TYPE

public static final Status UNSUPPORTED_MEDIA_TYPE

RANGE_NOT_SATISFIABLE

public static final Status RANGE_NOT_SATISFIABLE

EXPECTATION_FAILED

public static final Status EXPECTATION_FAILED

INTERNAL_SERVER_ERROR

public static final Status INTERNAL_SERVER_ERROR

NOT_IMPLEMENTED

public static final Status NOT_IMPLEMENTED

code

protected String code
Response code


message

protected String message
Response message

Constructor Detail

Status

public Status()
Constructor


Status

public Status(String statusCode,
              String statusMessage)
Constructor

Parameters:
statusCode - status code
statusMessage - status message
Method Detail

getCode

public String getCode()
Returns status code

Returns:
status code

getMessage

public String getMessage()
Returns status message

Returns:
status message

getFullStatus

public String getFullStatus()
Returns full status (code, space, message)

Returns:
full status (code, space, message)

toString

public String toString()
Returns status as a string

Overrides:
toString in class Object
Returns:
status as a string


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.