com.day.cq.xss.taglib
Class InvalidatePolicy

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.day.cq.xss.taglib.InvalidatePolicy
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class InvalidatePolicy
extends javax.servlet.jsp.tagext.TagSupport

This class provides a tag that can be used to invalidate a cached policy.

See Also:
Serialized Form

Field Summary
protected  String policy
          Path to policy file to use; null, if the default policy has to be used
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
InvalidatePolicy()
           
 
Method Summary
 int doStartTag()
          Handles the opening tag.
 String getPolicy()
          Get the path to the policy to be used.
 void setPolicy(String policy)
          Set the path to the policy to be used.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

policy

protected String policy
Path to policy file to use; null, if the default policy has to be used

Constructor Detail

InvalidatePolicy

public InvalidatePolicy()
Method Detail

getPolicy

public String getPolicy()
Get the path to the policy to be used.

Returns:
Path to policy file to use; null, if the default policy has to be used

setPolicy

public void setPolicy(String policy)
Set the path to the policy to be used.

Parameters:
policy - Path to policy file to use; null, if the default policy has to be used

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Handles the opening tag.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
SKIP_BODY
Throws:
javax.servlet.jsp.JspException


Copyright © 2009 Day Management AG. All Rights Reserved.