public class DefaultLocalErrorPredicate extends Object implements com.google.common.base.Predicate<ProfileRequestContext>
This is principally determined based on whether or not the necessary message context children are present so that a response can be delivered, but is also tunable based on the error event being handled.
Constructor and Description |
---|
DefaultLocalErrorPredicate()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(ProfileRequestContext input) |
void |
setBindingContextLookupStrategy(com.google.common.base.Function<ProfileRequestContext,SAMLBindingContext> strategy)
Set lookup strategy for
SAMLBindingContext to check. |
void |
setEndpointContextLookupStrategy(com.google.common.base.Function<ProfileRequestContext,SAMLEndpointContext> strategy)
Set lookup strategy for
SAMLEndpointContext to check. |
void |
setEventContextLookupStrategy(com.google.common.base.Function<ProfileRequestContext,EventContext> strategy)
Set lookup strategy for
EventContext to check. |
void |
setLocalEvents(Collection<String> events)
Set the events to handle locally.
|
public void setBindingContextLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,SAMLBindingContext> strategy)
SAMLBindingContext
to check.strategy
- lookup strategypublic void setEndpointContextLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,SAMLEndpointContext> strategy)
SAMLEndpointContext
to check.strategy
- lookup strategypublic void setEventContextLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,EventContext> strategy)
EventContext
to check.strategy
- lookup strategypublic void setLocalEvents(@Nonnull @NonnullElements Collection<String> events)
events
- locally handled eventspublic boolean apply(@Nullable ProfileRequestContext input)
apply
in interface com.google.common.base.Predicate<ProfileRequestContext>
Copyright © 2019. All rights reserved.