| java.lang.Object com.sun.jbi.ui.common.JBIResultXmlBuilder
JBIResultXmlBuilder | public class JBIResultXmlBuilder (Code) | | This class is used to create a JBI Management message that contains the
messages and exception under the framework tags to help the ui messages
formatted in the standard message format as the any other result messages
comming from the jbi runtime in the form of jbi manamgment message xml.
author: Sun Microsystems, Inc. |
Method Summary | |
public static String | createFailedJbiResultXml(I18NBundle i18nBundle, String i18nKey, Object[] args) | public String | createJbiResultXml(String taskId, boolean successResult, String msgType, String msgCode, String msg, Object[] args, Throwable ex) | public String | createJbiResultXml(String taskId, boolean successResult, String msgType, String msgCode, String msg, Object[] args) | public String | createJbiResultXml(String taskId, String msgCode, Throwable ex) | public static String | createJbiResultXml(I18NBundle i18nBundle, String i18nKey, Object[] args, String taskId, boolean successResult, String msgType, Throwable ex) | public static String | createJbiResultXml(I18NBundle i18nBundle, String i18nKey, Object[] args, Throwable ex) | public String | createJbiResultXml(JBIManagementMessage msg) | protected List | flatExceptionChain(Throwable ex) | protected String | getChainedExceptionInfoXml(String msgCode, Throwable ex) | protected String | getExceptionInfoXml(String msgCode, int nestingLevel, Throwable ex) | protected String | getExceptionInfoXml(String msgCode, String locMsg, int nestingLevel, String stackTrace) | protected String | getExceptionStackTrace(Throwable ex) | public static JBIResultXmlBuilder | getInstance() | protected String | getMsgLocInfoXml(String msgCode, String msg, Object[] args) | protected String | getTaskInfoXml(String taskId, boolean successResult, String msgType) | protected String | getTaskStatusMsgXml(String msgCode, String msg, Object[] args) |
DEFAULT_MSG_CODE | final public static String DEFAULT_MSG_CODE(Code) | | default message code
|
DEFAULT_TASK_ID | final public static String DEFAULT_TASK_ID(Code) | | default task id
|
ERROR_MSG_TYPE | final public static String ERROR_MSG_TYPE(Code) | | error message type
|
FAILED_RESULT | final public static boolean FAILED_RESULT(Code) | | failed result
|
INFO_MSG_TYPE | final public static String INFO_MSG_TYPE(Code) | | info message type
|
SUCCESS_RESULT | final public static boolean SUCCESS_RESULT(Code) | | success result
|
WARNING_MSG_TYPE | final public static String WARNING_MSG_TYPE(Code) | | warning message type
|
JBIResultXmlBuilder | protected JBIResultXmlBuilder()(Code) | | Creates a new instance of EsbResultXmlBuilder
|
createFailedJbiResultXml | public static String createFailedJbiResultXml(I18NBundle i18nBundle, String i18nKey, Object[] args)(Code) | | creates the jbi management xml
Parameters: i18nBundle - i18n bundle object Parameters: i18nKey - i18n key in the bundle Parameters: args - i18n args jbi mgmt xml |
createJbiResultXml | public String createJbiResultXml(String taskId, boolean successResult, String msgType, String msgCode, String msg, Object[] args, Throwable ex)(Code) | | creates the jbi management xml
Parameters: taskId - task id Parameters: successResult - true for SUCCESS, false for FAILIED message Parameters: msgType - one of INFO, ERROR, WARNING Parameters: msgCode - i18n message code Parameters: msg - message Parameters: args - i18n message arguments Parameters: ex - exception jbi mgmt xml |
createJbiResultXml | public String createJbiResultXml(String taskId, boolean successResult, String msgType, String msgCode, String msg, Object[] args)(Code) | | creates the jbi management xml
Parameters: taskId - task id Parameters: successResult - true for SUCCESS, false for FAILIED message Parameters: msgType - one of INFO, ERROR, WARNING Parameters: msgCode - i18n message code Parameters: msg - message Parameters: args - i18n message arguments jbi mgmt xml |
createJbiResultXml | public String createJbiResultXml(String taskId, String msgCode, Throwable ex)(Code) | | creates the jbi management xml
Parameters: taskId - task id Parameters: msgCode - i18n message code Parameters: ex - exception jbi mgmt xml |
createJbiResultXml | public static String createJbiResultXml(I18NBundle i18nBundle, String i18nKey, Object[] args, String taskId, boolean successResult, String msgType, Throwable ex)(Code) | | creates the jbi management xml
Parameters: i18nBundle - i18n bundle object Parameters: i18nKey - key to look for i18n msg Parameters: args - i18n args Parameters: taskId - task id Parameters: successResult - true or false Parameters: msgType - message type Parameters: ex - exception the jbi management xml |
createJbiResultXml | public static String createJbiResultXml(I18NBundle i18nBundle, String i18nKey, Object[] args, Throwable ex)(Code) | | creates the jbi management xml
Parameters: i18nBundle - i18n bundle object Parameters: i18nKey - i18n key in the bundle Parameters: args - i18n args Parameters: ex - exception jbi mgmt xml |
createJbiResultXml | public String createJbiResultXml(JBIManagementMessage msg)(Code) | | Creates a XML JBI Management message from the JBI Management Message
the jbi management xml Parameters: msg - - JBIManagementMessage instance to create the xml message from |
flatExceptionChain | protected List flatExceptionChain(Throwable ex)(Code) | | returns the exception cause chain in a list including this exception
Parameters: ex - exception list contain the exception chain |
getChainedExceptionInfoXml | protected String getChainedExceptionInfoXml(String msgCode, Throwable ex)(Code) | | returns the xml chunk contains exception message info for the exception
chain
Parameters: msgCode - i18n code Parameters: ex - exception xml chunk |
getExceptionInfoXml | protected String getExceptionInfoXml(String msgCode, int nestingLevel, Throwable ex)(Code) | | returns exceptin info xml chunk
Parameters: msgCode - i18n message code Parameters: nestingLevel - level in the exception chain Parameters: ex - exception for stacktrace xml chunk |
getExceptionInfoXml | protected String getExceptionInfoXml(String msgCode, String locMsg, int nestingLevel, String stackTrace)(Code) | | returns exceptin info xml chunk
Parameters: msgCode - i18n message code Parameters: locMsg - localized message Parameters: nestingLevel - level in the exception chain Parameters: stackTrace - stacktrace string xml chunk |
getExceptionStackTrace | protected String getExceptionStackTrace(Throwable ex)(Code) | | return the excpetion stacktrace as a string
Parameters: ex - exception string contains the exception stacktrace |
getMsgLocInfoXml | protected String getMsgLocInfoXml(String msgCode, String msg, Object[] args)(Code) | | return the xml chunk contains the message info elements
Parameters: msgCode - i18n message code Parameters: msg - l10n message Parameters: args - arguments for i18n message the xml chunk |
getTaskInfoXml | protected String getTaskInfoXml(String taskId, boolean successResult, String msgType)(Code) | | return the xml chunk that has task info elements
Parameters: taskId - task id Parameters: successResult - true for SUCCESS, false for FAILED Parameters: msgType - one of INFO, ERROR, WARNING strings the xml chunk |
getTaskStatusMsgXml | protected String getTaskStatusMsgXml(String msgCode, String msg, Object[] args)(Code) | | return the xml chuck for status message elements
Parameters: msgCode - i18n message code Parameters: msg - l10n message Parameters: args - arguments for i18n message the xml chunk |
|
|