Package net.shibboleth.idp.ui.taglib
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 Summary
FieldsModifier and TypeFieldDescriptionprivate String
Bean storage.private String
Bean storage.private String
Bean storage.private static org.slf4j.Logger
Class logger.private RelyingPartyUIContext
Cached RelyingPartyUIContext.private static final long
Serial ID.private static Function<ProfileRequestContext,
RelyingPartyUIContext> Strategy function for access toRelyingPartyUIContext
for input to resolver.Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Add the class and Id (if present) to the string under construction.protected String
buildHyperLink
(String url, String text) Build a hyperlink from the parameters.protected RelyingPartyUIContext
Get theRelyingPartyUIContext
for the request.protected String
Get the identifier for the service name as per the rules above.void
setCssClass
(String value) Set the Css class to use.void
Get the Css class to use.void
setCssStyle
(String value) Set the Css style to use.void
Deprecated.this has to be calculated every timeMethods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.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 toRelyingPartyUIContext
for 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()
-
-
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
- theStringBuilder
to add to.
-
buildHyperLink
Build a hyperlink from the parameters.- Parameters:
url
- the URLtext
- what to embed- Returns:
- the hyperlink.
-
getRelyingPartyUIContext
Get theRelyingPartyUIContext
for 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.
-