MessageType
- type of message on which to operatepublic class SchemaValidateXMLMessage<MessageType extends XMLObject> extends AbstractMessageHandler<MessageType>
Constructor and Description |
---|
SchemaValidateXMLMessage(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.
|
Schema |
getValidationSchema()
Gets the schema used to validate incoming messages.
|
doPostInvoke, doPostInvoke, getLogPrefix, invoke
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
@Nonnull public 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 contextCopyright © 2016. All rights reserved.