public class ServiceTagSupport
extends javax.servlet.jsp.tagext.BodyTagSupport
| Modifier and Type | Field and Description |
|---|---|
private String |
cssClass
Bean storage.
|
private String |
cssId
Bean storage.
|
private String |
cssStyle
Bean storage.
|
private static org.slf4j.Logger |
log
Class logger.
|
private static long |
serialVersionUID
checkstyle requires this serialization info.
|
| Constructor and Description |
|---|
ServiceTagSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addClassAndId(StringBuilder sb)
Add the class and Id if present.
|
protected String |
buildHyperLink(String url,
String text)
build a hyperlink from the parameters.
|
protected List<String> |
getBrowserLanguages()
Pluck the language from the browser.
|
private String |
getNameFromAttributeConsumingService(String lang)
look for an <AttributeConsumeService> and if its there look for an appropriate name.
|
private String |
getNameFromEntityId()
If the entityId can look like a host return that otherwise the string.
|
private String |
getNameFromUIInfo(String lang)
look at <Uiinfo> if there and if so look for appropriate name.
|
protected String |
getServiceName()
Get the identifier for the service name as per the rules above.
|
protected EntityDescriptor |
getSPEntityDescriptor()
Get the EntityDescriptor for the relying party.
|
protected Organization |
getSPOrganization()
Traverse the SP's EntityDescriptor and pick out the Organization.
|
protected UIInfo |
getSPUIInfo()
Traverse the SP's EntityDescriptor and pick out the UIInfo.
|
void |
setCssClass(String value)
Bean setter.
|
void |
setCssId(String value)
Bean setter.
|
void |
setCssStyle(String value)
Bean setter.
|
doAfterBody, doEndTag, 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 String cssClass
private String cssId
private String cssStyle
public void setCssClass(String value)
value - what to setpublic void setCssId(String value)
value - what to setpublic void setCssStyle(String value)
value - what to setprotected void addClassAndId(StringBuilder sb)
sb - the stringbuilder to asdd to.protected String buildHyperLink(String url, String text)
url - the URLtext - what to embedprotected EntityDescriptor getSPEntityDescriptor()
protected UIInfo getSPUIInfo()
protected Organization getSPOrganization()
protected List<String> getBrowserLanguages()
private String getNameFromEntityId()
private String getNameFromUIInfo(String lang)
lang - - which language to look upprivate String getNameFromAttributeConsumingService(String lang)
lang - - which language to look upprotected String getServiceName()
Copyright © 1999-2014. All Rights Reserved.