com.tensegrity.palojava.http
Class HttpErrorCode

java.lang.Object
  extended by com.tensegrity.palojava.http.HttpErrorCode

public final class HttpErrorCode
extends java.lang.Object

A type safe enumartion of error codes All valid error codes and their meanings are defined by the palo server.

Version:
$Id$
Author:
ArndHouben

Field Summary
static HttpErrorCode CANNOT_OPEN_FILE
           
static HttpErrorCode CLIENT_COMMAND_GARBLED
           
 int code
           
static HttpErrorCode CUBE_NOT_FOUND
           
static HttpErrorCode CUBE_NOT_LOADED
           
static HttpErrorCode CUBE_TOKEN_OUTDATED
           
static HttpErrorCode DATABASE_NOT_FOUND
           
static HttpErrorCode DATABASE_NOT_LOADED
           
static HttpErrorCode DATABASE_TOKEN_OUTDATED
           
static HttpErrorCode DELETE_REQUIRED
           
 java.lang.String description
           
static HttpErrorCode DIMENSION_IN_USE
           
static HttpErrorCode DIMENSION_NOT_FOUND
           
static HttpErrorCode DIMENSION_NOT_UNIQUE
           
static HttpErrorCode DIMENSION_TOKEN_OUTDATED
           
static HttpErrorCode ELEMENT_NOT_FOUND
           
static HttpErrorCode FILE_NOT_LOADABLE
           
static HttpErrorCode IDENTIFIER_IN_USE
           
static HttpErrorCode ILLEGAL_PARAMETER_VALUE
           
static HttpErrorCode INTERNAL_ERROR
           
static HttpErrorCode MISSING_PARAMETER
           
static HttpErrorCode NAME_IN_USE
           
static HttpErrorCode NOT_UNAUTHORIZED
           
static HttpErrorCode PATH_NOT_EQUAL
           
static HttpErrorCode SAVE_DATABASE_REQUIRED
           
static HttpErrorCode SAVE_SERVER_REQUIRED
           
static HttpErrorCode SERVER_NOT_LOADED
           
static HttpErrorCode SERVER_TOKEN_OUTDATED
           
static HttpErrorCode SPLASH_DISABLED_FAILED
           
static HttpErrorCode UNKNOWN
           
static HttpErrorCode UNKNOWN_LEGACY_FUNCTION
           
static HttpErrorCode WRONG_PARAMETER
           
 
Method Summary
static HttpErrorCode getErrorCode(java.lang.String code)
          Returns the error code for the given code or null if no error code is registered for the given code.
static boolean isErrorCode(java.lang.String code)
          Checks if the given code is an error code
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

code

public final int code

description

public final java.lang.String description

UNKNOWN

public static final HttpErrorCode UNKNOWN

MISSING_PARAMETER

public static final HttpErrorCode MISSING_PARAMETER

WRONG_PARAMETER

public static final HttpErrorCode WRONG_PARAMETER

ILLEGAL_PARAMETER_VALUE

public static final HttpErrorCode ILLEGAL_PARAMETER_VALUE

DATABASE_NOT_FOUND

public static final HttpErrorCode DATABASE_NOT_FOUND

DIMENSION_NOT_FOUND

public static final HttpErrorCode DIMENSION_NOT_FOUND

ELEMENT_NOT_FOUND

public static final HttpErrorCode ELEMENT_NOT_FOUND

CUBE_NOT_FOUND

public static final HttpErrorCode CUBE_NOT_FOUND

FILE_NOT_LOADABLE

public static final HttpErrorCode FILE_NOT_LOADABLE

CANNOT_OPEN_FILE

public static final HttpErrorCode CANNOT_OPEN_FILE

UNKNOWN_LEGACY_FUNCTION

public static final HttpErrorCode UNKNOWN_LEGACY_FUNCTION

INTERNAL_ERROR

public static final HttpErrorCode INTERNAL_ERROR

DATABASE_NOT_LOADED

public static final HttpErrorCode DATABASE_NOT_LOADED

CUBE_NOT_LOADED

public static final HttpErrorCode CUBE_NOT_LOADED

NAME_IN_USE

public static final HttpErrorCode NAME_IN_USE

SAVE_DATABASE_REQUIRED

public static final HttpErrorCode SAVE_DATABASE_REQUIRED

SAVE_SERVER_REQUIRED

public static final HttpErrorCode SAVE_SERVER_REQUIRED

SPLASH_DISABLED_FAILED

public static final HttpErrorCode SPLASH_DISABLED_FAILED

DELETE_REQUIRED

public static final HttpErrorCode DELETE_REQUIRED

SERVER_NOT_LOADED

public static final HttpErrorCode SERVER_NOT_LOADED

DIMENSION_IN_USE

public static final HttpErrorCode DIMENSION_IN_USE

DIMENSION_NOT_UNIQUE

public static final HttpErrorCode DIMENSION_NOT_UNIQUE

IDENTIFIER_IN_USE

public static final HttpErrorCode IDENTIFIER_IN_USE

PATH_NOT_EQUAL

public static final HttpErrorCode PATH_NOT_EQUAL

CLIENT_COMMAND_GARBLED

public static final HttpErrorCode CLIENT_COMMAND_GARBLED

SERVER_TOKEN_OUTDATED

public static final HttpErrorCode SERVER_TOKEN_OUTDATED

DATABASE_TOKEN_OUTDATED

public static final HttpErrorCode DATABASE_TOKEN_OUTDATED

DIMENSION_TOKEN_OUTDATED

public static final HttpErrorCode DIMENSION_TOKEN_OUTDATED

CUBE_TOKEN_OUTDATED

public static final HttpErrorCode CUBE_TOKEN_OUTDATED

NOT_UNAUTHORIZED

public static final HttpErrorCode NOT_UNAUTHORIZED
Method Detail

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

isErrorCode

public static final boolean isErrorCode(java.lang.String code)
Checks if the given code is an error code

Parameters:
code - a possible error code
Returns:
true if the given code is an error code, false if not

getErrorCode

public static final HttpErrorCode getErrorCode(java.lang.String code)
Returns the error code for the given code or null if no error code is registered for the given code.

Parameters:
code - a possible error code
Returns:
the corresponding HttpErrorCode or null