org.ow2.petals.component.framework.util
Class ManagementMessageUtil

java.lang.Object
  extended by org.ow2.petals.component.framework.util.ManagementMessageUtil

public class ManagementMessageUtil
extends java.lang.Object

This class gathers the dtd used for the management message

Since:
1.0
Author:
ddesjardins - eBMWebsourcing

Field Summary
static java.lang.String MESSAGE_TYPE_ERROR
           
static java.lang.String MESSAGE_TYPE_INFO
           
static java.lang.String MESSAGE_TYPE_WARNING
           
static java.lang.String TASK_RESULT_FAILED
           
static java.lang.String TASK_RESULT_SUCCESS
           
 
Constructor Summary
ManagementMessageUtil()
           
 
Method Summary
static java.lang.String getComponentTaskResult(java.lang.String componentName, java.lang.String taskId, java.lang.String taskResult)
          Return a component task result xml
static java.lang.String getComponentTaskResult(java.lang.String componentName, java.lang.String taskId, java.lang.String taskResult, java.lang.String messageType, java.lang.String message, java.lang.String[] messageParams)
          Return a component task result xml
static java.lang.String getComponentTaskResult(java.lang.String componentName, java.lang.String taskId, java.lang.String taskResult, java.lang.String messageType, java.lang.String message, java.lang.String[] messageParams, java.lang.String nestingLevel, java.lang.String exceptionMessage, java.lang.String[] exceptionMessageParams, java.lang.String stackStrace)
          Return a component task result xml
static java.lang.String getComponentTaskResult(java.lang.String componentName, java.lang.String taskId, java.lang.String taskResult, java.lang.String messageType, java.lang.String nestingLevel, java.lang.String exceptionMessage, java.lang.String[] exceptionMessageParams, java.lang.String stackStrace)
          Return a component task result xml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TASK_RESULT_FAILED

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

TASK_RESULT_SUCCESS

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

MESSAGE_TYPE_ERROR

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

MESSAGE_TYPE_WARNING

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

MESSAGE_TYPE_INFO

public static final java.lang.String MESSAGE_TYPE_INFO
See Also:
Constant Field Values
Constructor Detail

ManagementMessageUtil

public ManagementMessageUtil()
Method Detail

getComponentTaskResult

public static java.lang.String getComponentTaskResult(java.lang.String componentName,
                                                      java.lang.String taskId,
                                                      java.lang.String taskResult)
Return a component task result xml

Parameters:
componentName - component name
taskId - id of the task
taskResult - result of the task
Returns:
xml string

getComponentTaskResult

public static java.lang.String getComponentTaskResult(java.lang.String componentName,
                                                      java.lang.String taskId,
                                                      java.lang.String taskResult,
                                                      java.lang.String messageType,
                                                      java.lang.String nestingLevel,
                                                      java.lang.String exceptionMessage,
                                                      java.lang.String[] exceptionMessageParams,
                                                      java.lang.String stackStrace)
Return a component task result xml

Parameters:
componentName - component name
taskId - id of the task
taskResult - result of the task
messageType - type of message
nestingLevel - nesting level of the exception
exceptionMessage - message of the exception
exceptionMessageParams - list of the param for the exception message
stackStrace - stacktrace
Returns:
xml string

getComponentTaskResult

public static java.lang.String getComponentTaskResult(java.lang.String componentName,
                                                      java.lang.String taskId,
                                                      java.lang.String taskResult,
                                                      java.lang.String messageType,
                                                      java.lang.String message,
                                                      java.lang.String[] messageParams)
Return a component task result xml

Parameters:
componentName - component name
taskId - id of the task
taskResult - result of the task
messageType - type of message
message - message
messageParams - list of param for the message
Returns:
xml string

getComponentTaskResult

public static java.lang.String getComponentTaskResult(java.lang.String componentName,
                                                      java.lang.String taskId,
                                                      java.lang.String taskResult,
                                                      java.lang.String messageType,
                                                      java.lang.String message,
                                                      java.lang.String[] messageParams,
                                                      java.lang.String nestingLevel,
                                                      java.lang.String exceptionMessage,
                                                      java.lang.String[] exceptionMessageParams,
                                                      java.lang.String stackStrace)
Return a component task result xml

Parameters:
componentName - component name
taskId - id of the task
taskResult - result of the task
messageType - type of message
message - message
messageParams - list of param for the message
nestingLevel - nesting level of the exception
exceptionMessage - message of the exception
exceptionMessageParams - list of the param for the exception message
stackStrace - stacktrace
Returns:
xml string


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.