jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gl...@locus.apache.org
Subject cvs commit: jakarta-taglibs/response/src/org/apache/taglibs/response AddCookieTag.java
Date Sat, 11 Nov 2000 15:48:31 GMT
glenn       00/11/11 07:48:31

  Modified:    response/src/org/apache/taglibs/response AddCookieTag.java
  Log:
  Cleanup for release
  
  Revision  Changes    Path
  1.2       +43 -24    jakarta-taglibs/response/src/org/apache/taglibs/response/AddCookieTag.java
  
  Index: AddCookieTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/response/src/org/apache/taglibs/response/AddCookieTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AddCookieTag.java	2000/09/26 20:00:26	1.1
  +++ AddCookieTag.java	2000/11/11 15:48:31	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-taglibs/response/src/org/apache/taglibs/response/AddCookieTag.java,v
1.1 2000/09/26 20:00:26 glenn Exp $
  - * $Revision: 1.1 $
  - * $Date: 2000/09/26 20:00:26 $
  + * $Header: /home/cvs/jakarta-taglibs/response/src/org/apache/taglibs/response/AddCookieTag.java,v
1.2 2000/11/11 15:48:31 glenn Exp $
  + * $Revision: 1.2 $
  + * $Date: 2000/11/11 15:48:31 $
    *
    * ====================================================================
    *
  @@ -81,7 +81,7 @@
    * <name>addcookie</name>
    * <tagclass>org.apache.taglibs.response.AddCookieTag</tagclass>
    * <bodycontent>JSP</bodycontent>
  - * <info>Used to add a cookie to an Http Response.</info>
  + * <info>Add a cookie to an Http Response.</info>
    *   <attribute>
    *     <name>name</name>
    *     <required>true</required>
  @@ -146,7 +146,7 @@
        *
        * @return EVAL_BODY_INCLUDE
        */
  -    public int doStartTag() throws JspException
  +    public final int doStartTag() throws JspException
       {
   	cookie = new Cookie(name,"");
   	return EVAL_BODY_INCLUDE;
  @@ -158,7 +158,7 @@
        *
        * @return EVAL_PAGE
        */
  -    public int doEndTag() throws JspException
  +    public final int doEndTag() throws JspException
       {
   	// Set the cookie attribute values
   	if( value != null )
  @@ -180,25 +180,32 @@
       }
   
       /**
  -     * Specifies a comment that describes a cookie's purpose.
  +     * Optional attribute, specifies a comment that describes a cookie's purpose.
  +     *
  +     * @param String comment
        */
  -    public void setComment(String com)
  +    public final void setComment(String com)
       {
   	comment = com;
       }
   
       /**
  -     * Specifies the domain within which this cookie should be presented.
  +     * Optional attribute, specifies the domain within which this
  +     * cookie should be presented.
  +     *
  +     * @param String domain
        */
  -    public void setDomain(String dom)
  +    public final void setDomain(String dom)
       {
   	domain = dom;
       }
   
       /**
  -     * Sets the maximum age of the cookie in seconds.
  +     * Optional attribute, sets the maximum age of the cookie in seconds.
  +     *
  +     * @param String number of seconds
        */
  -    public void setMaxage(String max) throws JspException
  +    public final void setMaxage(String max) throws JspException
       {
           try {
               maxage = Integer.valueOf(max).intValue();
  @@ -209,35 +216,44 @@
       }
   
       /**
  -     * Specifies the name of the cookie.
  +     * Required attribute, name of the cookie.
  +     *
  +     * @param String name
        */
  -    public void setName(String nam)
  +    public final void setName(String nam)
       {
   	name = nam;
       }
   
       /**
  -     * Specifies a path for the cookie to which the client should return
  -     * the cookie.
  +     * Optional attribute, specifies a path for the cookie to which
  +     * the client should return the cookie.
  +     *
  +     * @param String path
        */
  -    public void setPath(String pth)
  +    public final void setPath(String pth)
       {
   	path = pth;
       }
   
       /**
  -     * Assigns a value to a cookie.
  +     * Optional attribute, assigns a value to a cookie.
  +     *
  +     * @param String value
        */
  -    public void setValue(String val)
  +    public final void setValue(String val)
       {
   	value = val;
       }
   
       /**
  -     * Indicates to the browser whether the cookie should only be sent
  -     * using a secure protocol, such as HTTPS or SSL.
  +     * Optional attribute, indicates to the browser whether the cookie
  +     * should only be sent using a secure protocol, such as HTTPS or SSL.
  +     * Set to true or false.  Default value is false.
  +     *
  +     * @param String true or false
        */
  -    public void setSecure(String flag)
  +    public final void setSecure(String flag)
       {
   	if( flag.equals("true") ) {
   	    secure = true;
  @@ -245,9 +261,12 @@
       }
   
       /**
  -     * Sets the version of the cookie protocol this cookie complies with.
  +     * Optional attribute, sets the version of the cookie protocol
  +     * this cookie complies with.
  +     *
  +     * @param String version number
        */
  -    public void setVersion(String vers) throws JspException
  +    public final void setVersion(String vers) throws JspException
       {
   	try {
   	    version = Integer.valueOf(vers).intValue();
  
  
  

Mime
View raw message