BEA Systems, Inc.

com.beasys.commerce.p13n.tags
Class DivTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--com.beasys.commerce.axiom.p13n.jsp.tags.P13nBodyTagSupport
                    |
                    +--com.beasys.commerce.p13n.tags.DivTag

public class DivTag
extends P13nBodyTagSupport

See Also:
Serialized Form

Field Summary
protected  java.lang.String ADVICE_REQUEST_TYPE
          The fully qualified name of the type of AdviceRequest this tag uses.
protected  java.lang.String id
           
protected  boolean includeBody
          Indicator of whether the body should be included.
protected  java.lang.String rule
          The rule in the ruleSet that determines whether the content should be displayed.
protected  java.lang.String ruleSet
          The rulesheet where the rule for this tag exists.
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Constructor Summary
DivTag()
           
 
Method Summary
 int doAfterBody()
          Processes after body.
 void doInitBody()
          Processes before body.
 int doStartTag()
          Processes the start tag.
protected  void dumpAttributes()
           
protected  ClassificationAdviceRequest getBasicRequest(Advisor anAdvisor)
          Returns a ClassificationAdviceRequest object with only the basic fields filled out (User, HttpSession, HttpRequest, Now).
 java.lang.String getId()
          The id to assign the results to.
 java.lang.String getRule()
          Get name of the selector rule in the ruleSet.
 java.lang.String getRuleset()
          Deprecated. As of WLPS 3.1, replaced by getRuleSet()
 java.lang.String getRuleSet()
          Get uri to the ruleSet containing the selector rule.
protected  boolean includeBody()
          Runs the advisor to determine the classification.
 void setId(java.lang.String anId)
          The id to assign the results to.
 void setRule(java.lang.String aSelector)
          Set name of the selector rule in the ruleSet.
 void setRuleset(java.lang.String aRuleSetURI)
          Deprecated. As of WLPS 3.1, replaced by setRuleSet(String)
 void setRuleSet(java.lang.String aRuleSetURI)
          Set uri to the ruleSet containing the selector rule.
 
Methods inherited from class com.beasys.commerce.axiom.p13n.jsp.tags.P13nBodyTagSupport
getAdvisor, isJspBase, isP13NJspBase
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ruleSet

protected java.lang.String ruleSet
The rulesheet where the rule for this tag exists.

rule

protected java.lang.String rule
The rule in the ruleSet that determines whether the content should be displayed.

id

protected java.lang.String id

includeBody

protected boolean includeBody
Indicator of whether the body should be included.

ADVICE_REQUEST_TYPE

protected java.lang.String ADVICE_REQUEST_TYPE
The fully qualified name of the type of AdviceRequest this tag uses.
Constructor Detail

DivTag

public DivTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Processes the start tag.
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport

doInitBody

public void doInitBody()
                throws javax.servlet.jsp.JspException
Processes before body.
Overrides:
doInitBody in class javax.servlet.jsp.tagext.BodyTagSupport

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException,
                       javax.servlet.jsp.JspTagException
Processes after body. Only done if the classifier rule evaluates to true.
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport

includeBody

protected boolean includeBody()
                       throws javax.servlet.jsp.JspTagException
Runs the advisor to determine the classification.
Returns:
True if the advisor indicates the classification is made.

getBasicRequest

protected ClassificationAdviceRequest getBasicRequest(Advisor anAdvisor)
                                               throws javax.servlet.jsp.JspTagException
Returns a ClassificationAdviceRequest object with only the basic fields filled out (User, HttpSession, HttpRequest, Now).
Parameters:
anAdvisor - A Advisor instance.
Returns:
A ClassificationAdviceRequest.
Throws:
javax.servlet.jsp.JspTagException - If there is a problem creating the request.

dumpAttributes

protected void dumpAttributes()

setRuleset

public void setRuleset(java.lang.String aRuleSetURI)
Deprecated. As of WLPS 3.1, replaced by setRuleSet(String)

Set uri to the ruleSet containing the selector rule.

setRuleSet

public void setRuleSet(java.lang.String aRuleSetURI)
Set uri to the ruleSet containing the selector rule.

getRuleset

public java.lang.String getRuleset()
Deprecated. As of WLPS 3.1, replaced by getRuleSet()

Get uri to the ruleSet containing the selector rule.

getRuleSet

public java.lang.String getRuleSet()
Get uri to the ruleSet containing the selector rule.

setRule

public void setRule(java.lang.String aSelector)
Set name of the selector rule in the ruleSet.

getRule

public java.lang.String getRule()
Get name of the selector rule in the ruleSet.

setId

public void setId(java.lang.String anId)
The id to assign the results to.
Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport

getId

public java.lang.String getId()
The id to assign the results to.
Overrides:
getId in class javax.servlet.jsp.tagext.TagSupport

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved