public class ServiceContactTag extends ServiceTagSupport
| Modifier and Type | Field and Description |
|---|---|
private String |
contactName
bean storage for the name attribute.
|
private ContactPersonTypeEnumeration |
contactType
storage for the contactType bean.
|
private static org.slf4j.Logger |
log
Class logger.
|
private static long |
serialVersionUID
required by checkstyle.
|
| Constructor and Description |
|---|
ServiceContactTag() |
| Modifier and Type | Method and Description |
|---|---|
private String |
buildURL(String email,
String name)
either return the name raw or garnshed in a hyperlink.
|
int |
doEndTag() |
protected String |
getContactFromEntity()
build an appropriate string from the <EntityDescriptor>.
|
private String |
getStringFromContact(ContactPerson contact)
build an appropriate string from the <Contact>.
|
void |
setContactType(String type)
Setter for the contactType bean.
|
void |
setName(String s)
Set the bean.
|
addClassAndId, buildHyperLink, getBrowserLanguages, getServiceName, getSPEntityDescriptor, getSPOrganization, getSPUIInfo, setCssClass, setCssId, setCssStyledoAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprivate static final long serialVersionUID
private static org.slf4j.Logger log
private ContactPersonTypeEnumeration contactType
private String contactName
public void setContactType(String type)
type - in valuepublic void setName(String s)
s - new valueprivate String buildURL(String email, String name)
email - the email address (a url)name - the name to return.private String getStringFromContact(ContactPerson contact)
contact - who we are interested in.protected String getContactFromEntity()
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionCopyright © 1999-2014. All Rights Reserved.