|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.petals.microkernel.api.jbi.management.XMLResult
public class XMLResult
This class gathers the DTD used for the management message.
Nested Class Summary | |
---|---|
static class |
XMLResult.CauseFramework
|
static class |
XMLResult.MessageType
|
static class |
XMLResult.TaskResult
|
Field Summary | |
---|---|
protected String |
frameworkTaskId
|
protected StringBuffer |
xmlBuffer
|
Constructor Summary | |
---|---|
XMLResult(String frameworkTaskId)
|
Method Summary | |
---|---|
void |
addComponentTaskResult(StringBuffer componentTaskString)
Added a component task result to this management message |
void |
addFrameworkTaskResult(XMLResult.TaskResult taskResult,
XMLResult.CauseFramework causeFramework)
Add a framework task result to a xml management message |
void |
addFrameworkTaskResult(XMLResult.TaskResult taskResult,
XMLResult.MessageType messageType,
String message,
String[] messageParams,
String nestingLevel,
String exceptionMessage,
String[] exceptionMessageParams,
String stackStrace,
XMLResult.CauseFramework causeFramework)
Add a framework task result to a xml management message |
void |
addFrameworkTaskResult(XMLResult.TaskResult taskResult,
XMLResult.MessageType messageType,
String message,
String[] messageParams,
String nestingLevel,
String exceptionMessage,
String[] exceptionMessageParams,
XMLResult.CauseFramework causeFramework)
Add a framework task result to a xml management message |
void |
addFrameworkTaskResult(XMLResult.TaskResult taskResult,
XMLResult.MessageType messageType,
String message,
String[] messageParams,
XMLResult.CauseFramework causeFramework)
Add a framework task result to a xml management message |
String |
getString()
Close the XMLResult and return the String |
static boolean |
isValidComponentTask(String componentTask,
InputStream xsd)
Check if a component task result is valid against a xml schema |
static void |
validateManagementMessage(String managementMessage,
InputStream xsd)
Check if a management message task result is valid against a xml schema |
String |
wrapComponentTaskResult(String componentName,
String taskId,
String message)
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 |
---|
protected StringBuffer xmlBuffer
protected String frameworkTaskId
Constructor Detail |
---|
public XMLResult(String frameworkTaskId)
Method Detail |
---|
public void addFrameworkTaskResult(XMLResult.TaskResult taskResult, XMLResult.CauseFramework causeFramework)
taskResult
- result of the taskcauseFramework
- causeFrameworkpublic void addFrameworkTaskResult(XMLResult.TaskResult taskResult, XMLResult.MessageType messageType, String message, String[] messageParams, XMLResult.CauseFramework causeFramework)
taskResult
- result of the taskmessageType
- type of messagemessage
- messagemessageParams
- list of param for the messagecauseFramework
- causeFrameworkpublic void addFrameworkTaskResult(XMLResult.TaskResult taskResult, XMLResult.MessageType messageType, String message, String[] messageParams, String nestingLevel, String exceptionMessage, String[] exceptionMessageParams, XMLResult.CauseFramework causeFramework)
taskResult
- result of the taskmessageType
- type of messagemessage
- messagemessageParams
- list of param for the messagenestingLevel
- nesting level of the exceptionexceptionMessage
- message of the exceptionexceptionMessageParams
- list of the param for the exception messagecauseFramework
- causeFrameworkpublic void addComponentTaskResult(StringBuffer componentTaskString)
componentTaskString
- component task result xmlpublic void addFrameworkTaskResult(XMLResult.TaskResult taskResult, XMLResult.MessageType messageType, String message, String[] messageParams, String nestingLevel, String exceptionMessage, String[] exceptionMessageParams, String stackStrace, XMLResult.CauseFramework causeFramework)
taskResult
- result of the taskmessageType
- type of messagemessage
- messagemessageParams
- list of param for the messagenestingLevel
- nesting level of the exceptionexceptionMessage
- message of the exceptionexceptionMessageParams
- list of the param for the exception messagestackStrace
- stacktracecauseFramework
- causeFrameworkpublic String getString()
public static boolean isValidComponentTask(String componentTask, InputStream xsd)
componentTask
- xml of the component task
public static void validateManagementMessage(String managementMessage, InputStream xsd) throws Exception
managementMessage
- message xml of the management messagexsd
- XMLSchema as InputStream
to validate the message
Exception
public String wrapComponentTaskResult(String componentName, String taskId, String message)
componentName
- component nametaskId
- id of the tasktaskResult
- result of the taskmessageType
- type of messagemessage
- messagemessageParams
- list of param for the messagenestingLevel
- nesting level of the exceptionexceptionMessage
- message of the exceptionexceptionMessageParams
- list of the param for the exception messagestackStrace
- stacktrace
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |