DelegateType - type of MessageHandler to which to delegate.public abstract class AbstractHandlerDelegatingProfileAction<DelegateType extends MessageHandler> extends AbstractConditionalProfileAction
MessageHandler.| Modifier and Type | Field and Description |
|---|---|
private DelegateType |
delegate
The message handler delegate.
|
private String |
errorEvent
An event to signal in the event of a handler exception.
|
private ContextDataLookupFunction<ProfileRequestContext,MessageContext> |
messageContextLookup
Lookup function for the message context on which to operate.
|
private static ParentProfileRequestContextLookup |
PRC_LOOKUP
Lookup function for parent ProfileRequestContext.
|
| Constructor and Description |
|---|
AbstractHandlerDelegatingProfileAction(Class<DelegateType> delegateClass,
ContextDataLookupFunction<ProfileRequestContext,MessageContext> lookup)
Constructor.
|
AbstractHandlerDelegatingProfileAction(DelegateType delegateInstance,
ContextDataLookupFunction<ProfileRequestContext,MessageContext> lookup)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> com.google.common.base.Function<MessageContext,T> |
adapt(com.google.common.base.Function<ProfileRequestContext,T> function)
Adapt a
ProfileRequestContext function to a MessageContext function via composing
with a lookup function. |
protected com.google.common.base.Predicate<MessageContext> |
adapt(com.google.common.base.Predicate<ProfileRequestContext> predicate)
Adapt a
ProfileRequestContext predicate into a MessageContext predicate via composing
with a lookup function. |
protected void |
doDestroy() |
protected void |
doExecute(ProfileRequestContext profileRequestContext)
Performs this action.
|
protected DelegateType |
getDelegate()
Get the delegate instance.
|
void |
setErrorEvent(String event)
Set the event to signal in the event of a handler exception.
|
doPreExecute, getActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doInitialize, initialize, isDestroyed, isInitializedprivate static final ParentProfileRequestContextLookup PRC_LOOKUP
@Nonnull private DelegateType extends MessageHandler delegate
@Nonnull private ContextDataLookupFunction<ProfileRequestContext,MessageContext> messageContextLookup
public AbstractHandlerDelegatingProfileAction(@Nonnull Class<DelegateType> delegateClass, @Nonnull ContextDataLookupFunction<ProfileRequestContext,MessageContext> lookup)
delegateClass - the delegate class. Must have a no-argument constructor. For those that do not,
instead pass in a pre-constructed instance via
AbstractHandlerDelegatingProfileAction(MessageHandler, ContextDataLookupFunction).lookup - the lookup function for the message context on which to operate,
typically for either the inbound or outbound contextpublic AbstractHandlerDelegatingProfileAction(@Nonnull DelegateType delegateInstance, @Nonnull ContextDataLookupFunction<ProfileRequestContext,MessageContext> lookup)
delegateInstance - the delegate instancelookup - the lookup function for the message context on which to operate,
typically for either the inbound or outbound contextpublic void setErrorEvent(@Nullable String event)
event - event to signalprotected void doDestroy()
doDestroy in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent@Nonnull protected DelegateType getDelegate()
@Nullable protected com.google.common.base.Predicate<MessageContext> adapt(@Nullable com.google.common.base.Predicate<ProfileRequestContext> predicate)
ProfileRequestContext predicate into a MessageContext predicate via composing
with a lookup function.predicate - the profile request context predicate@Nullable protected <T> com.google.common.base.Function<MessageContext,T> adapt(@Nullable com.google.common.base.Function<ProfileRequestContext,T> function)
ProfileRequestContext function to a MessageContext function via composing
with a lookup function.T - the output type of the functionsfunction - the profile request context functionprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileActionprofileRequestContext - the current IdP profile request contextCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.