|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.soa.esb.actions.AbstractActionLifecycle
org.jboss.soa.esb.actions.AbstractActionPipelineProcessor
org.jboss.soa.esb.actions.validation.SchemaValidationAction
public class SchemaValidationAction
An action that validates the passed-in message payload against the configured schema. The payload can be of either type byte[] or String. Example configuration:
<action name="validate" class="org.jboss.soa.esb.actions.validation.SchemaValidationAction">
<property name="schema" value="/test.xsd"/>
</action>
Optional properties:
Field Summary |
---|
Fields inherited from interface org.jboss.soa.esb.actions.ActionPipelineProcessor |
---|
PROCESS_EXCEPTION_METHOD, PROCESS_METHOD, PROCESS_SUCCESS_METHOD |
Constructor Summary | |
---|---|
SchemaValidationAction(ConfigTree config)
Sole constructor that expects the config tree to have the attribute "schema" |
Method Summary | |
---|---|
Message |
process(Message message)
Processes the messsage, extracting the payload and validating the xml against the configured schema. |
Methods inherited from class org.jboss.soa.esb.actions.AbstractActionPipelineProcessor |
---|
processException, processSuccess |
Methods inherited from class org.jboss.soa.esb.actions.AbstractActionLifecycle |
---|
destroy, initialise |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.soa.esb.actions.ActionLifecycle |
---|
destroy, initialise |
Constructor Detail |
---|
public SchemaValidationAction(ConfigTree config) throws ConfigurationException
config
- The action configuration.
ConfigurationException
Method Detail |
---|
public Message process(Message message) throws ActionProcessingException
message
- The esb Message object.
ActionProcessingException
- If a exception occurs while trying to validate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |