Class SecureContentTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.content.SecureContentTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class SecureContentTag extends TagSupport
A JSP tag to include content based on SSL.
Since:
6.0
Version:
6.0
Author:
Luke
See Also:
  • Constructor Details

    • SecureContentTag

      public SecureContentTag()
  • Method Details

    • setSecure

      public void setSecure(boolean needSecure)
      Sets whether the content requires an SSL or non-SSL connection.
      Parameters:
      needSecure - TRUE if HTTPS required, otherwise FALSE
    • doStartTag

      public int doStartTag()
      Checks whether the page protocol allows this content to be included.
      Specified by:
      doStartTag in interface Tag
      Overrides:
      doStartTag in class TagSupport
      Returns:
      SKIP_BODY or EVAL_BODY_INCLUDE