Class AddStatusToResponse.StatusCodeMappingFunction

  • All Implemented Interfaces:
    Function<org.opensaml.profile.context.ProfileRequestContext,​List<QName>>
    Enclosing class:
    AddStatusToResponse

    public static class AddStatusToResponse.StatusCodeMappingFunction
    extends Object
    implements Function<org.opensaml.profile.context.ProfileRequestContext,​List<QName>>
    A default method to map event IDs to SAML 1 StatusCode QNames based on EventContext.
    • Field Detail

      • codeMappings

        @Nonnull
        @NonnullElements
        private Map<String,​List<QName>> codeMappings
        Code mappings.
      • eventContextLookupStrategy

        @Nonnull
        private Function<org.opensaml.profile.context.ProfileRequestContext,​org.opensaml.profile.context.EventContext> eventContextLookupStrategy
        Strategy function for access to EventContext to check.
    • Constructor Detail

      • StatusCodeMappingFunction

        public StatusCodeMappingFunction​(@Nonnull @NonnullElements
                                         Map<String,​List<QName>> mappings)
        Constructor.
        Parameters:
        mappings - the status code mappings to use
    • Method Detail

      • setEventContextLookupStrategy

        public void setEventContextLookupStrategy​(@Nonnull
                                                  Function<org.opensaml.profile.context.ProfileRequestContext,​org.opensaml.profile.context.EventContext> strategy)
        Set lookup strategy for EventContext to check.
        Parameters:
        strategy - lookup strategy
      • apply

        @Nullable
        public List<QName> apply​(@Nullable
                                 org.opensaml.profile.context.ProfileRequestContext input)
        Specified by:
        apply in interface Function<org.opensaml.profile.context.ProfileRequestContext,​List<QName>>