Package net.shibboleth.idp.ui.taglib
Class ServiceContactTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.servlet.jsp.tagext.BodyTagSupport
net.shibboleth.idp.ui.taglib.ServiceTagSupport
net.shibboleth.idp.ui.taglib.ServiceContactTag
- All Implemented Interfaces:
BodyTag,IterationTag,JspTag,Tag,Serializable
return the contactInfo for the SP or null.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringbean storage for the name attribute.private ContactPersonTypeEnumerationstorage for the contactType bean.private static org.slf4j.LoggerClass logger.private static final longSerial ID.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 TypeMethodDescriptionprivate StringReturn either the name raw or garnished in a hyperlink.intdoEndTag()protected StringBuild an appropriate string from the <EntityDescriptor>.private StringgetStringFromContact(ContactPerson contact) Build an appropriate string from the <Contact>.voidsetContactType(String type) Setter for the contactType bean.voidSet the contact name.Methods inherited from class net.shibboleth.idp.ui.taglib.ServiceTagSupport
addClassAndId, buildHyperLink, getRelyingPartyUIContext, getServiceName, setCssClass, setCssId, setCssStyle, setUiContextMethods inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
doAfterBody, 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. -
contactType
storage for the contactType bean. -
contactName
bean storage for the name attribute.
-
-
Constructor Details
-
ServiceContactTag
public ServiceContactTag()
-
-
Method Details
-
setContactType
Setter for the contactType bean.- Parameters:
type- in value
-
setName
Set the contact name.- Parameters:
name- new value
-
buildURL
Return either the name raw or garnished in a hyperlink.- Parameters:
email- the email address (a url)name- the name to return.- Returns:
- either a hyperlink or a raw string, or null
-
getStringFromContact
Build an appropriate string from the <Contact>.- Parameters:
contact- who we are interested in.- Returns:
- either an hyperlink or straight text or null
-
getContactFromEntity
Build an appropriate string from the <EntityDescriptor>.- Returns:
- either a hyperlink or straight text or null.
-
doEndTag
- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classBodyTagSupport- Throws:
JspException
-