Modifier and Type | Class and Description |
---|---|
static class |
XMLResult.CauseFramework |
static class |
XMLResult.MessageType |
static class |
XMLResult.TaskResult |
Modifier and Type | Field and Description |
---|---|
protected String |
frameworkTaskId |
protected StringBuilder |
xmlBuffer |
Modifier and Type | Method and Description |
---|---|
void |
addComponentTaskResult(String componentTaskString)
Added a component task result to this management message
|
void |
addComponentTaskResult(StringBuilder 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
|
protected StringBuilder xmlBuffer
protected String frameworkTaskId
public XMLResult(String frameworkTaskId)
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(StringBuilder componentTaskString)
componentTaskString
- component task result xmlpublic void addComponentTaskResult(String 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 taskpublic static void validateManagementMessage(String managementMessage, InputStream xsd) throws Exception
managementMessage
- message xml of the management messagexsd
- XMLSchema as InputStream
to validate the messageException
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
- stacktraceCopyright © 2005-2016 Linagora. All Rights Reserved.