Class AbstractAttributeDisplayFunction

    • Field Detail

      • languageRange

        @Nonnull
        @Unmodifiable
        private final List<Locale.LanguageRange> languageRange
        The range of locales from the request.
      • defaultLanguageRange

        @Nonnull
        @Unmodifiable
        private final List<Locale.LanguageRange> defaultLanguageRange
        The tags for the fallback languages.
    • Constructor Detail

      • AbstractAttributeDisplayFunction

        public AbstractAttributeDisplayFunction​(@Nonnull
                                                javax.servlet.http.HttpServletRequest request,
                                                @Nullable
                                                List<String> defaultLanguages)
        Constructor.
        Parameters:
        request - HttpServletRequest used to get preferred languages
        defaultLanguages - list of fallback languages in order of decreasing preference
    • Method Detail

      • apply

        @Nullable
        public String apply​(@Nullable
                            net.shibboleth.idp.attribute.IdPAttribute input)
        Specified by:
        apply in interface Function<net.shibboleth.idp.attribute.IdPAttribute,​String>
      • getDisplayInfo

        @Nonnull
        protected abstract Map<Locale,​String> getDisplayInfo​(@Nonnull
                                                                   net.shibboleth.idp.attribute.IdPAttribute input)
        Get the information to be displayed from the attribute.
        Parameters:
        input - the attribute to consider
        Returns:
        the map of locale dependent information to be displayed