Package net.shibboleth.idp.ui.taglib
Class ServiceTagSupport
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.servlet.jsp.tagext.BodyTagSupport
net.shibboleth.idp.ui.taglib.ServiceTagSupport
- All Implemented Interfaces:
BodyTag,IterationTag,JspTag,Tag,Serializable
- Direct Known Subclasses:
OrganizationDisplayNameTag,OrganizationNameTag,OrganizationURLTag,ServiceContactTag,ServiceDescriptionTag,ServiceInformationURLTag,ServiceLogoTag,ServiceNameTag,ServicePrivacyURLTag
Display the serviceName.
This is taken in order 1) From the mdui 2) AttributeConsumeService 3) HostName from the EntityId 4) EntityId.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringBean storage.private StringBean storage.private StringBean storage.private static org.slf4j.LoggerClass logger.private RelyingPartyUIContextCached RelyingPartyUIContext.private static final longSerial ID.private static Function<ProfileRequestContext,RelyingPartyUIContext> Strategy function for access toRelyingPartyUIContextfor input to resolver.Fields inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdd the class and Id (if present) to the string under construction.protected StringbuildHyperLink(String url, String text) Build a hyperlink from the parameters.protected RelyingPartyUIContextGet theRelyingPartyUIContextfor the request.protected StringGet the identifier for the service name as per the rules above.voidsetCssClass(String value) Set the Css class to use.voidGet the Css class to use.voidsetCssStyle(String value) Set the Css style to use.voidDeprecated.this has to be calculated every timeMethods inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContentMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial ID.- See Also:
-
log
@Nonnull private static org.slf4j.Logger logClass logger. -
uiContextLookupStrategy
@Nonnull private static Function<ProfileRequestContext,RelyingPartyUIContext> uiContextLookupStrategyStrategy function for access toRelyingPartyUIContextfor input to resolver. -
cssClass
Bean storage. class reference -
cssId
Bean storage. id reference -
cssStyle
Bean storage. style reference -
relyingPartyUIContext
Cached RelyingPartyUIContext.
-
-
Constructor Details
-
ServiceTagSupport
public ServiceTagSupport()Constructor.
-
-
Method Details
-
setUiContext
Deprecated.this has to be calculated every timeSets theRelyingPartyUIContext.- Parameters:
value- what to set
-
setCssClass
Set the Css class to use.- Parameters:
value- what to set
-
setCssId
Get the Css class to use.- Parameters:
value- what to set
-
setCssStyle
Set the Css style to use.- Parameters:
value- what to set
-
addClassAndId
Add the class and Id (if present) to the string under construction.- Parameters:
sb- theStringBuilderto add to.
-
buildHyperLink
Build a hyperlink from the parameters.- Parameters:
url- the URLtext- what to embed- Returns:
- the hyperlink.
-
getRelyingPartyUIContext
Get theRelyingPartyUIContextfor the request. We cache this if it exists (the usual case).- Returns:
- the context
-
getServiceName
Get the identifier for the service name as per the rules above.- Returns:
- something sensible for display.
-