com.epam.admintool.resource
Class ResourceHelper

java.lang.Object
  extended by com.epam.admintool.resource.ResourceHelper

public class ResourceHelper
extends Object

The resource helper class.
Provides ability to load the message from properties file.


Field Summary
static String INVALID_XML_DATA
           
static String OPERATION_ERROR
           
static String OPERATION_SESSION_LIST_SNAPSHOT_SUCCESS
           
static String OPERATION_SESSION_LIST_SUBSCRIBE_SUCCESS
           
static String OPERATION_SESSION_LIST_UNSUBSCRIBE_SNAPSHOT_SUCCESS
           
static String OPERATION_SESSION_LIST_WITH_SNAPSHOT_SUCCESS
           
static String OPERATION_SUCCESS
           
static String OPERATION_UNKNOWN_SENDER_TARGET
           
static String OPERATION_UNKNOWN_SESSION_ID
           
static String REQUEST_ID_HAS_BEEN_USED
           
static String UNABLE_TO_PROCESS_NOT_XMLDATA
           
static String XML_DATA_IS_EMPTY
           
 
Method Summary
static String getCodeMessage(String key)
           
static String getCodeMessage(String key, String commandName)
           
static String getFailsCodeMessage(String key, String... args)
           
static String getFailsCodeMessage(String key, String commandName, String problem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPERATION_UNKNOWN_SENDER_TARGET

public static final String OPERATION_UNKNOWN_SENDER_TARGET
See Also:
Constant Field Values

OPERATION_UNKNOWN_SESSION_ID

public static final String OPERATION_UNKNOWN_SESSION_ID
See Also:
Constant Field Values

OPERATION_SUCCESS

public static final String OPERATION_SUCCESS
See Also:
Constant Field Values

OPERATION_ERROR

public static final String OPERATION_ERROR
See Also:
Constant Field Values

INVALID_XML_DATA

public static final String INVALID_XML_DATA
See Also:
Constant Field Values

UNABLE_TO_PROCESS_NOT_XMLDATA

public static final String UNABLE_TO_PROCESS_NOT_XMLDATA
See Also:
Constant Field Values

XML_DATA_IS_EMPTY

public static final String XML_DATA_IS_EMPTY
See Also:
Constant Field Values

REQUEST_ID_HAS_BEEN_USED

public static final String REQUEST_ID_HAS_BEEN_USED
See Also:
Constant Field Values

OPERATION_SESSION_LIST_SNAPSHOT_SUCCESS

public static final String OPERATION_SESSION_LIST_SNAPSHOT_SUCCESS
See Also:
Constant Field Values

OPERATION_SESSION_LIST_WITH_SNAPSHOT_SUCCESS

public static final String OPERATION_SESSION_LIST_WITH_SNAPSHOT_SUCCESS
See Also:
Constant Field Values

OPERATION_SESSION_LIST_UNSUBSCRIBE_SNAPSHOT_SUCCESS

public static final String OPERATION_SESSION_LIST_UNSUBSCRIBE_SNAPSHOT_SUCCESS
See Also:
Constant Field Values

OPERATION_SESSION_LIST_SUBSCRIBE_SUCCESS

public static final String OPERATION_SESSION_LIST_SUBSCRIBE_SUCCESS
See Also:
Constant Field Values
Method Detail

getCodeMessage

public static String getCodeMessage(String key,
                                    String commandName)

getFailsCodeMessage

public static String getFailsCodeMessage(String key,
                                         String commandName,
                                         String problem)

getFailsCodeMessage

public static String getFailsCodeMessage(String key,
                                         String... args)

getCodeMessage

public static String getCodeMessage(String key)


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.