You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by gl...@locus.apache.org on 2000/11/03 13:48:52 UTC
cvs commit: jakarta-taglibs/request/src/org/apache/taglibs/request ExistsCookieTag.java
glenn 00/11/03 04:48:51
Modified: request/src/org/apache/taglibs/request ExistsCookieTag.java
Log:
Cleanup for release
Revision Changes Path
1.2 +18 -6 jakarta-taglibs/request/src/org/apache/taglibs/request/ExistsCookieTag.java
Index: ExistsCookieTag.java
===================================================================
RCS file: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/ExistsCookieTag.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ExistsCookieTag.java 2000/09/24 00:00:54 1.1
+++ ExistsCookieTag.java 2000/11/03 12:48:48 1.2
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/ExistsCookieTag.java,v 1.1 2000/09/24 00:00:54 glenn Exp $
- * $Revision: 1.1 $
- * $Date: 2000/09/24 00:00:54 $
+ * $Header: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/ExistsCookieTag.java,v 1.2 2000/11/03 12:48:48 glenn Exp $
+ * $Revision: 1.2 $
+ * $Date: 2000/11/03 12:48:48 $
*
* ====================================================================
*
@@ -100,7 +100,9 @@
public class ExistsCookieTag extends TagSupport
{
+ // Name of cookie to test for existance
private String name = null;
+ // Optional attribute value of existance required
private Boolean value = null;
/**
@@ -108,7 +110,7 @@
*
* @return SKIP_BODY if existscookie doesn't match value, EVAL_BODY_include if existscookie matches value
*/
- public int doStartTag() throws JspException
+ public final int doStartTag() throws JspException
{
boolean result = false;
@@ -137,12 +139,22 @@
return SKIP_BODY;
}
- public void setName(String str)
+ /**
+ * Set the required tag attribute <b>name</b>.
+ *
+ * @param String name of cookie
+ */
+ public final void setName(String str)
{
name = str;
}
- public void setValue(String str)
+ /**
+ * Set the optional tag attribute <b>value</b> to true or false.
+ *
+ * @param String true or false
+ */
+ public final void setValue(String str)
{
value = new Boolean(str);
}