Class SchemaValidateXMLMessage
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- org.opensaml.messaging.handler.impl.SchemaValidateXMLMessage
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
public class SchemaValidateXMLMessage extends AbstractMessageHandler
A handler that schema validates an XML-based message.- Precondition:
MessageContext.getMessage().getDOM() != null
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private XMLObjectmessageThe message to validate.private SchemavalidationSchemaSchema used to validate incoming messages.
-
Constructor Summary
Constructors Constructor Description SchemaValidateXMLMessage(Schema schema)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInvoke(MessageContext messageContext)protected booleandoPreInvoke(MessageContext messageContext)SchemagetValidationSchema()Gets the schema used to validate incoming messages.-
Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationCondition
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Constructor Detail
-
SchemaValidateXMLMessage
public SchemaValidateXMLMessage(@Nonnull Schema schema)Constructor.- Parameters:
schema- schema used to validate incoming messages
-
-
Method Detail
-
getValidationSchema
@Nonnull public Schema getValidationSchema()
Gets the schema used to validate incoming messages.- Returns:
- schema used to validate incoming messages, not null after action is initialized
-
doPreInvoke
protected boolean doPreInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException- Overrides:
doPreInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
doInvoke
protected void doInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
-