Class HttpServletRequestPredicate
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.sp.profile.context.logic.HttpServletRequestPredicate
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,Component,DestructableComponent,InitializableComponent
public class HttpServletRequestPredicate
extends AbstractInitializableComponent
implements Predicate<ProfileRequestContext>
A predicate that supports configurable evaluation of servlet request state to
produce a result via the
HttpServletRequestValidator interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate NonnullSupplier<HttpServletRequest>Request supplier.private org.slf4j.LoggerClass logger.private HttpServletRequestValidatorValidator to use. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidSets the supplier for theHttpServletRequestto evaluate.voidSets the validator to apply.booleantest(ProfileRequestContext input) Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logClass logger. -
httpServletRequestSupplier
Request supplier. -
requestValidator
Validator to use.
-
-
Constructor Details
-
HttpServletRequestPredicate
public HttpServletRequestPredicate()
-
-
Method Details
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
test
- Specified by:
testin interfacePredicate<ProfileRequestContext>