Class InsertRSSTag

All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class InsertRSSTag extends InsertContentTag
A JSP Tag to insert a link to an RSS data feed.
Since:
1.0
Version:
10.6
Author:
Luke
See Also:
  • Constructor Details

    • InsertRSSTag

      public InsertRSSTag()
  • Method Details

    • setTitle

      public void setTitle(String title)
      Sets the title of the RSS feed.
      Parameters:
      title - the title
    • setProtocol

      public void setProtocol(String protocol)
      Sets the protocol used to retrieve the RSS feed
      Parameters:
      protocol - the protocol, usually http or https
    • setHost

      public void setHost(String hostName)
      Sets the host name for the RSS feed.
      Parameters:
      hostName - the server host name
    • setPath

      public void setPath(String path)
      Sets the parth to the RSS data feed
      Parameters:
      path - the path
    • release

      public void release()
      Specified by:
      release in interface Tag
      Overrides:
      release in class TagSupport
    • doStartTag

      public int doStartTag() throws JspException
      Renders the start of the JSP tag and calculates default values.
      Specified by:
      doStartTag in interface Tag
      Overrides:
      doStartTag in class TagSupport
      Returns:
      SKIP_BODY always
      Throws:
      JspException - never
    • doEndTag

      public int doEndTag() throws JspException
      Renders the RSS link to the JSP output stream.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      EVAL_PAGE always
      Throws:
      JspException - if an error occurs