public class ComponentMessageHolder extends Object
| Constructor and Description |
|---|
ComponentMessageHolder(String msgType)
Creates a new instance of MessageContentHolder with a message type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getComponentMessageType()
Get the type(status, exception) of message to be built
for this component.
|
String |
getComponentName()
Return the name of the component.
|
String |
getExceptionMessageType()
Get the exception message type being returned by the component.
|
Throwable |
getExceptionObject()
Get the exception object being thrown by this component.
|
String |
getLocMessage(int nestingLevel)
Returns the exception message.
|
String[] |
getLocParam(int nestingLevel)
Returns the exception message parameters.
|
String |
getLocToken(int nestingLevel)
Returns the message token.
|
String |
getStatusMessageType()
Get the status message type being returned by the component.
|
String |
getTaskName()
Get the name of the task executed by this component.
|
String |
getTaskResult()
Get the result of the task executed by this component.
|
void |
setComponentName(String name)
Set the name of the component that executed the task.
|
void |
setExceptionMessageType(String exMsgType)
Set the exception message type being returned by the component.
|
void |
setExceptionObject(Throwable exObj)
Set the exception object.
|
void |
setLocMessage(int nestingLevel,
String locMessage)
Set the message for the exception being
thrown by the component.
|
void |
setLocParam(int nestingLevel,
String[] locParam)
Set the message parameters for the exception being
thrown by the component.
|
void |
setLocToken(int nestingLevel,
String locToken)
Set the message token for the exception being
thrown by the component.
|
void |
setStatusMessageType(String statMsgType)
Set the message type being returned by the component.
|
void |
setTaskName(String taskName)
Set the name of the task executed by component.
|
void |
setTaskResult(String taskResult)
Set the result of the task executed by component.
|
public ComponentMessageHolder(String msgType)
msgType - String describing the message type to build.public void setTaskName(String taskName)
taskName - - task executed by component.public void setComponentName(String name)
name - - Name of the component.public void setTaskResult(String taskResult)
taskResult - - result of task executed by component.public void setExceptionObject(Throwable exObj)
exObj - - exception object.public void setStatusMessageType(String statMsgType)
statMsgType - - type of success message that is
being returned by the component.public void setExceptionMessageType(String exMsgType)
exMsgType - - type of exception message that is
being returned by the component.public void setLocToken(int nestingLevel,
String locToken)
nestingLevel - - nesting level of the exceptionlocToken - - message token.public void setLocMessage(int nestingLevel,
String locMessage)
nestingLevel - - nesting level of the exception.locMessage - - exception message.public void setLocParam(int nestingLevel,
String[] locParam)
nestingLevel - - nesting level of the exception.locParam - - exception message parameters.public String getLocToken(int nestingLevel)
nestingLevel - nesting level of the exception.public String getLocMessage(int nestingLevel)
nestingLevel - nesting level of the exceptionpublic String[] getLocParam(int nestingLevel)
nestingLevel - nesting level of the exception.public Throwable getExceptionObject()
public String getTaskName()
public String getTaskResult()
public String getComponentMessageType()
public String getStatusMessageType()
public String getExceptionMessageType()
public String getComponentName()
Copyright © 2011-2016 OpenESB Community. All Rights Reserved.