Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## edu.internet2.middleware.shibboleth.idp.ui
Class ServiceTagSupport

    java.lang.Object
      javax.servlet.jsp.tagext.TagSupport
          javax.servlet.jsp.tagext.BodyTagSupport
              edu.internet2.middleware.shibboleth.idp.ui.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:
  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:
  Serialized Form

Field Summary

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
`ServiceTagSupport()`

Method Summary
`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 String` | `getBrowserLanguage()` Pluck the language from the browser.
`protected String` | `getServiceName()` Get the identifier for the service name as per the rules above.
`protected org.opensaml.saml2.metadata.EntityDescriptor` | `getSPEntityDescriptor()` Get the EntityDescriptor for the relying party.
`protected org.opensaml.samlext.saml2mdui.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.

Methods 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`

Constructor Detail

### ServiceTagSupport

    public ServiceTagSupport()

Method Detail

### setCssClass

    public void setCssClass(String value)

  Bean setter.

  Parameters:
    `value` - what to set

### setCssId

    public void setCssId(String value)

  Bean setter.

  Parameters:
    `value` - what to set

### setCssStyle

    public void setCssStyle(String value)

  Bean setter.

  Parameters:
    `value` - what to set

### addClassAndId

    protected void addClassAndId(StringBuilder sb)

  Add the class and Id if present.

  Parameters:
    `sb` - the stringbuilder to asdd to.

### buildHyperLink

    protected String buildHyperLink(String url,
                                    String text)

  build a hyperlink from the parameters.

  Parameters:
    `url` - the URL
    `text` - what to embed
  Returns:
    the hyperlink.

### getSPEntityDescriptor

    protected org.opensaml.saml2.metadata.EntityDescriptor getSPEntityDescriptor()

  Get the EntityDescriptor for the relying party.

  Returns:
    the SPs EntityDescriptor

### getSPUIInfo

    protected org.opensaml.samlext.saml2mdui.UIInfo getSPUIInfo()

  Traverse the SP's EntityDescriptor and pick out the UIInfo.

  Returns:
    the first UIInfo for the SP.

### getBrowserLanguage

    protected String getBrowserLanguage()

  Pluck the language from the browser.

  Returns:
    the two letter language

### getServiceName

    protected String getServiceName()

  Get the identifier for the service name as per the rules above.

  Returns:
    something sensible for display.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2011 Internet2. All Rights Reserved.