Class CSPHostTag

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

public class CSPHostTag extends TagSupport
A JSP tag to add a CSP host name. This is a very thin wrapper around the method in ContentHelper
Since:
12.0
Version:
12.0
Author:
Luke
See Also:
  • Constructor Details

    • CSPHostTag

      public CSPHostTag()
  • Method Details

    • setType

      public void setType(String csType)
      Sets the content security policy type.
      Parameters:
      csType - a ContentSecurity enum name
    • setHost

      public void setHost(String host)
      Sets the host name.
      Parameters:
      host - the host name
    • doEndTag

      public int doEndTag() throws JspException
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Throws:
      JspException