MessageType - type of message on which to operatepublic class SchemaValidateXMLMessage<MessageType extends XMLObject> extends AbstractMessageHandler<MessageType>
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private javax.xml.validation.Schema |
validationSchema
Schema used to validate incoming messages.
|
| Constructor and Description |
|---|
SchemaValidateXMLMessage(javax.xml.validation.Schema schema)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInvoke(MessageContext<MessageType> messageContext)
Performs the handler logic.
|
protected boolean |
doPreInvoke(MessageContext<MessageType> messageContext)
Called prior to execution, handlers may override this method to perform pre-processing for a request.
|
javax.xml.validation.Schema |
getValidationSchema()
Gets the schema used to validate incoming messages.
|
doPostInvoke, doPostInvoke, getLogPrefix, invokedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedprivate org.slf4j.Logger log
private final javax.xml.validation.Schema validationSchema
public SchemaValidateXMLMessage(@Nonnull
javax.xml.validation.Schema schema)
schema - schema used to validate incoming messages@Nonnull public javax.xml.validation.Schema getValidationSchema()
protected boolean doPreInvoke(@Nonnull
MessageContext<MessageType> messageContext)
throws MessageHandlerException
If false is returned, execution will not proceed.
If returning successfully, the last step should be to return the result of the superclass version of this method.
doPreInvoke in class AbstractMessageHandler<MessageType extends XMLObject>messageContext - the message context on which to invoke the handlerMessageHandlerException - if there is a problem executing the handler pre-routineprotected void doInvoke(@Nonnull
MessageContext<MessageType> messageContext)
throws MessageHandlerException
doInvoke in class AbstractMessageHandler<MessageType extends XMLObject>messageContext - the message context on which to invoke the handlerMessageHandlerException - if there is an error invoking the handler on the message context