Class ChainingHttpServletRequestValidator
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.servlet.impl.ChainingHttpServletRequestValidator
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,HttpServletRequestValidator
public class ChainingHttpServletRequestValidator
extends AbstractInitializableComponent
implements HttpServletRequestValidator
Implementation for a chain of
HttpServletRequestValidator.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.slf4j.LoggerLogger.private List<HttpServletRequestValidator>Chain validators. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the list of registered validators.voidsetValidators(List<HttpServletRequestValidator> newValidators) Set the list of registered validators.voidvalidate(HttpServletRequest request) Validate the request.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
log
private org.slf4j.Logger logLogger. -
validators
Chain validators.
-
-
Constructor Details
-
ChainingHttpServletRequestValidator
public ChainingHttpServletRequestValidator()
-
-
Method Details
-
getValidators
Get the list of registered validators.- Returns:
- the list of validators
-
setValidators
Set the list of registered validators.- Parameters:
newValidators- the validators to use
-
validate
Validate the request.- Specified by:
validatein interfaceHttpServletRequestValidator- Parameters:
request- the request to validate- Throws:
ServletException- if the request is determined to be invalid
-