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.
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Function<ProfileRequestContext,SAMLBindingContext> |
bindingContextLookupStrategy
Strategy function for access to
SAMLBindingContext to check. |
private com.google.common.base.Function<ProfileRequestContext,SAMLEndpointContext> |
endpointContextLookupStrategy
Strategy function for access to
SAMLEndpointContext to check. |
private com.google.common.base.Function<ProfileRequestContext,EventContext> |
eventContextLookupStrategy
Strategy function for access to
EventContext to check. |
private Set<String> |
localEvents
Error events to handle locally, even if possible to do so with a response.
|
private org.slf4j.Logger |
log
Class logger.
|
| 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.
|
@Nonnull private final org.slf4j.Logger log
@Nonnull private com.google.common.base.Function<ProfileRequestContext,SAMLBindingContext> bindingContextLookupStrategy
SAMLBindingContext to check.@Nonnull private com.google.common.base.Function<ProfileRequestContext,SAMLEndpointContext> endpointContextLookupStrategy
SAMLEndpointContext to check.@Nonnull private com.google.common.base.Function<ProfileRequestContext,EventContext> eventContextLookupStrategy
EventContext to check.@Nonnull @NonnullElements private Set<String> localEvents
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(@Nullable Collection<String> events)
events - locally handled eventspublic boolean apply(@Nullable ProfileRequestContext input)
apply in interface com.google.common.base.Predicate<ProfileRequestContext>Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.