DivTag Class
- public class DivTag
extends BodyTagSupport
The tag handler of the personalization jsp extension tag 'div'.
The div tag allows user supplied content (not in a DMS) to be
turned off based on rules.
-
Hierarchy
-
Object
TagSupport
BodyTagSupport
BodyTagSupport
DivTag
-
All Implemented Interfaces
-
BodyTag
, IterationTag
, Serializable
, Tag
protected String |
-
id
- To store the value of id attribute.
|
protected String |
-
rule
- The rule in the rule set that determines whether the content
should be displayed.
|
public int |
-
doAfterBody ()
- Processes after body.
|
public void |
-
doInitBody ()
- Processes before body.
|
public int |
-
doStartTag ()
- Processes the start tag.
|
public String |
-
getId ()
- The id to assign the results to.
|
protected AdviceRequest |
-
getRequest ()
- Returns a Classification AdviceRequest object after populating the following fields
- The current HTTP Request
- The current HTTP Session
- The current User
- A new TimeInstant
- A new Time
- A new Date
- A RULES_RULENAME_TO_FIRE
- A RULES_FILTER_CLASS_NAME
|
public String |
-
getRule ()
- Get name of the selector rule in the rule set.
|
protected boolean |
-
includeBody ()
- Runs the advisor to determine the classification.
|
public void |
-
release ()
|
public void |
-
setId (String anId)
- The id to assign the results to.
|
public void |
-
setRule (String aSelector)
- Set name of the selector rule in the rule set.
|
Methods from javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected String
id
- To store the value of id attribute.
rule
protected String
rule
- The rule in the rule set that determines whether the content
should be displayed.
DivTag
public DivTag()
doAfterBody() Method
public int doAfterBody()
throws JspException
Processes after body. Only done if the classifier rule evaluates to true.
-
Overrides
-
BodyTagSupport.doAfterBody()
Exceptions
-
JspException
doInitBody() Method
public void doInitBody()
throws JspException
Processes before body.
-
Overrides
-
BodyTagSupport.doInitBody()
Exceptions
-
JspException
doStartTag() Method
public int doStartTag()
throws JspException
Processes the start tag.
-
Overrides
-
BodyTagSupport.doStartTag()
Exceptions
-
JspException
getId() Method
public String
getId()
The id to assign the results to.
-
Overrides
-
TagSupport.getId()
getRequest() Method
protected AdviceRequest
getRequest()
throws JspException
Returns a Classification AdviceRequest object after populating the following fields
- The current HTTP Request
- The current HTTP Session
- The current User
- A new TimeInstant
- A new Time
- A new Date
- A RULES_RULENAME_TO_FIRE
- A RULES_FILTER_CLASS_NAME
Returns
- A Classification AdviceRequest.
Exceptions
-
JspException
getRule() Method
public String
getRule()
Get name of the selector rule in the rule set.
includeBody() Method
protected boolean includeBody()
throws JspException
Runs the advisor to determine the classification.
Returns
- True if the advisor indicates the classification is made.
Exceptions
-
JspException
release() Method
public void release()
-
Overrides
-
BodyTagSupport.release()
setId(String) Method
public void setId(String
anId)
The id to assign the results to.
-
Overrides
-
TagSupport.setId(String)
setRule(String) Method
public void setRule(String
aSelector)
Set name of the selector rule in the rule set.