Class ServiceTagSupport

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
net.shibboleth.idp.ui.taglib.ServiceTagSupport
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
OrganizationDisplayNameTag, OrganizationNameTag, OrganizationURLTag, ServiceContactTag, ServiceDescriptionTag, ServiceInformationURLTag, ServiceLogoTag, ServiceNameTag, ServicePrivacyURLTag

public class ServiceTagSupport extends javax.servlet.jsp.tagext.BodyTagSupport
Display the serviceName. This is taken in order 1) From the mdui 2) AttributeConsumeService 3) HostName from the EntityId 4) EntityId.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial ID.
      See Also:
    • log

      @Nonnull private static org.slf4j.Logger log
      Class logger.
    • uiContextLookupStrategy

      @Nonnull private static Function<ProfileRequestContext,RelyingPartyUIContext> uiContextLookupStrategy
      Strategy function for access to RelyingPartyUIContext for input to resolver.
    • cssClass

      @Nullable private String cssClass
      Bean storage. class reference
    • cssId

      @Nullable private String cssId
      Bean storage. id reference
    • cssStyle

      @Nullable private String cssStyle
      Bean storage. style reference
    • relyingPartyUIContext

      @Nullable private RelyingPartyUIContext relyingPartyUIContext
      Cached RelyingPartyUIContext.
  • Constructor Details

    • ServiceTagSupport

      public ServiceTagSupport()
  • Method Details

    • setUiContext

      @Deprecated public void setUiContext(@Nullable RelyingPartyUIContext value)
      Deprecated.
      this has to be calculated every time
      Parameters:
      value - what to set
    • setCssClass

      public void setCssClass(@Nullable String value)
      Set the Css class to use.
      Parameters:
      value - what to set
    • setCssId

      public void setCssId(@Nullable String value)
      Get the Css class to use.
      Parameters:
      value - what to set
    • setCssStyle

      public void setCssStyle(@Nullable String value)
      Set the Css style to use.
      Parameters:
      value - what to set
    • addClassAndId

      protected void addClassAndId(@Nonnull StringBuilder sb)
      Add the class and Id (if present) to the string under construction.
      Parameters:
      sb - the StringBuilder to add to.
    • buildHyperLink

      @Nonnull protected String buildHyperLink(@Nonnull String url, @Nonnull String text)
      Build a hyperlink from the parameters.
      Parameters:
      url - the URL
      text - what to embed
      Returns:
      the hyperlink.
    • getRelyingPartyUIContext

      @Nullable protected RelyingPartyUIContext getRelyingPartyUIContext()
      Get the RelyingPartyUIContext for the request. We cache this if it exists (the usual case).
      Returns:
      the context
    • getServiceName

      @Nullable protected String getServiceName()
      Get the identifier for the service name as per the rules above.
      Returns:
      something sensible for display.