com.oakgrovesystems.reactor
Class Responses

java.lang.Object
  |
  +--com.oakgrovesystems.reactor.Responses

public class Responses
extends java.lang.Object


Field Summary
static int CODE200_OK
           
static int CODE400_BAD_REQUEST
           
static int CODE404_BAD_PARAMETERS
           
static int CODE405_BAD_REQUEST_TYPE
           
static int CODE406_CAN_NOT_DELIVER_FORMAT
           
static int CODE407_COULD_NOT_PARSE_REQUEST
           
static int CODE408_BAD_RESPONSE
           
static int CODE410_UNAUTHORIZED
           
static int CODE411_LOGIN_FAILED
           
static int CODE412_LOGIN_FAILED_FROM_SERVER_CONFIG
           
static int CODE413_REJECTED_BY_ACL
           
static int CODE414_DUPLICATE_OBJECT
           
static int CODE420_NOT_FOUND
           
static int CODE430_INVALID_LICENSE
           
static int CODE500_INTERNAL_ERROR
           
static int CODE501_NOT_IMPLEMENTED
           
static int CODE502_SERVICE_NOT_INITIALIZED
           
static int CODE503_SERVICE_UNAVAILABLE
           
static int CODE504_SERVICE_NOT_FOUND
           
static int CODE505_FAILED_ASSERTION
           
static int CODE506_VERSION_NOT_SUPPORTED
           
static java.lang.String MESSAGE200
           
static java.lang.String MESSAGE400
           
static java.lang.String MESSAGE404
           
static java.lang.String MESSAGE405
           
static java.lang.String MESSAGE406
           
static java.lang.String MESSAGE407
           
static java.lang.String MESSAGE408
           
static java.lang.String MESSAGE410
           
static java.lang.String MESSAGE411
           
static java.lang.String MESSAGE412
           
static java.lang.String MESSAGE413
           
static java.lang.String MESSAGE414
           
static java.lang.String MESSAGE420
           
static java.lang.String MESSAGE421
           
static java.lang.String MESSAGE500
           
static java.lang.String MESSAGE501
           
static java.lang.String MESSAGE502
           
static java.lang.String MESSAGE503
           
static java.lang.String MESSAGE504
           
static java.lang.String MESSAGE505
           
static java.lang.String MESSAGE506
           
 
Constructor Summary
Responses()
           
 
Method Summary
static java.lang.String getMessage(int code)
          Returns the appropriate message for the given integer code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE200

public static final java.lang.String MESSAGE200
See Also:
Constant Field Values

MESSAGE400

public static final java.lang.String MESSAGE400
See Also:
Constant Field Values

MESSAGE404

public static final java.lang.String MESSAGE404
See Also:
Constant Field Values

MESSAGE405

public static final java.lang.String MESSAGE405
See Also:
Constant Field Values

MESSAGE406

public static final java.lang.String MESSAGE406
See Also:
Constant Field Values

MESSAGE407

public static final java.lang.String MESSAGE407
See Also:
Constant Field Values

MESSAGE408

public static final java.lang.String MESSAGE408
See Also:
Constant Field Values

MESSAGE410

public static final java.lang.String MESSAGE410
See Also:
Constant Field Values

MESSAGE411

public static final java.lang.String MESSAGE411
See Also:
Constant Field Values

MESSAGE412

public static final java.lang.String MESSAGE412
See Also:
Constant Field Values

MESSAGE413

public static final java.lang.String MESSAGE413
See Also:
Constant Field Values

MESSAGE414

public static final java.lang.String MESSAGE414
See Also:
Constant Field Values

MESSAGE420

public static final java.lang.String MESSAGE420
See Also:
Constant Field Values

MESSAGE421

public static final java.lang.String MESSAGE421
See Also:
Constant Field Values

MESSAGE500

public static final java.lang.String MESSAGE500
See Also:
Constant Field Values

MESSAGE501

public static final java.lang.String MESSAGE501
See Also:
Constant Field Values

MESSAGE502

public static final java.lang.String MESSAGE502
See Also:
Constant Field Values

MESSAGE503

public static final java.lang.String MESSAGE503
See Also:
Constant Field Values

MESSAGE504

public static final java.lang.String MESSAGE504
See Also:
Constant Field Values

MESSAGE505

public static final java.lang.String MESSAGE505
See Also:
Constant Field Values

MESSAGE506

public static final java.lang.String MESSAGE506
See Also:
Constant Field Values

CODE200_OK

public static final int CODE200_OK
See Also:
Constant Field Values

CODE400_BAD_REQUEST

public static final int CODE400_BAD_REQUEST
See Also:
Constant Field Values

CODE404_BAD_PARAMETERS

public static final int CODE404_BAD_PARAMETERS
See Also:
Constant Field Values

CODE405_BAD_REQUEST_TYPE

public static final int CODE405_BAD_REQUEST_TYPE
See Also:
Constant Field Values

CODE406_CAN_NOT_DELIVER_FORMAT

public static final int CODE406_CAN_NOT_DELIVER_FORMAT
See Also:
Constant Field Values

CODE407_COULD_NOT_PARSE_REQUEST

public static final int CODE407_COULD_NOT_PARSE_REQUEST
See Also:
Constant Field Values

CODE408_BAD_RESPONSE

public static final int CODE408_BAD_RESPONSE
See Also:
Constant Field Values

CODE410_UNAUTHORIZED

public static final int CODE410_UNAUTHORIZED
See Also:
Constant Field Values

CODE411_LOGIN_FAILED

public static final int CODE411_LOGIN_FAILED
See Also:
Constant Field Values

CODE412_LOGIN_FAILED_FROM_SERVER_CONFIG

public static final int CODE412_LOGIN_FAILED_FROM_SERVER_CONFIG
See Also:
Constant Field Values

CODE413_REJECTED_BY_ACL

public static final int CODE413_REJECTED_BY_ACL
See Also:
Constant Field Values

CODE414_DUPLICATE_OBJECT

public static final int CODE414_DUPLICATE_OBJECT
See Also:
Constant Field Values

CODE420_NOT_FOUND

public static final int CODE420_NOT_FOUND
See Also:
Constant Field Values

CODE430_INVALID_LICENSE

public static final int CODE430_INVALID_LICENSE
See Also:
Constant Field Values

CODE500_INTERNAL_ERROR

public static final int CODE500_INTERNAL_ERROR
See Also:
Constant Field Values

CODE501_NOT_IMPLEMENTED

public static final int CODE501_NOT_IMPLEMENTED
See Also:
Constant Field Values

CODE502_SERVICE_NOT_INITIALIZED

public static final int CODE502_SERVICE_NOT_INITIALIZED
See Also:
Constant Field Values

CODE503_SERVICE_UNAVAILABLE

public static final int CODE503_SERVICE_UNAVAILABLE
See Also:
Constant Field Values

CODE504_SERVICE_NOT_FOUND

public static final int CODE504_SERVICE_NOT_FOUND
See Also:
Constant Field Values

CODE505_FAILED_ASSERTION

public static final int CODE505_FAILED_ASSERTION
See Also:
Constant Field Values

CODE506_VERSION_NOT_SUPPORTED

public static final int CODE506_VERSION_NOT_SUPPORTED
See Also:
Constant Field Values
Constructor Detail

Responses

public Responses()
Method Detail

getMessage

public static java.lang.String getMessage(int code)
Returns the appropriate message for the given integer code. Returns null if a bad code is given.

Parameters:
code - The code to map to a String message.
Returns:
Returns the appropriate message for the given integer code. Returns null if a bad code is given.


Copyright (c) 1999-2004 Oak Grove Systems. All Rights Reserved.