cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/environment Response.java
Date Mon, 11 Feb 2002 04:22:33 GMT
vgritsenko    02/02/10 20:22:33

  Modified:    src/java/org/apache/cocoon/environment Response.java
  Log:
  Added somehow missed methods.
  
  Revision  Changes    Path
  1.4       +30 -4     xml-cocoon2/src/java/org/apache/cocoon/environment/Response.java
  
  Index: Response.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/environment/Response.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Response.java	4 Feb 2002 14:17:57 -0000	1.3
  +++ Response.java	11 Feb 2002 04:22:33 -0000	1.4
  @@ -61,7 +61,7 @@
    *
    * @author <a href="mailto:dims@yahoo.com">Davanum Srinivas</a>
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
  - * @version CVS $Id: Response.java,v 1.3 2002/02/04 14:17:57 cziegeler Exp $
  + * @version CVS $Id: Response.java,v 1.4 2002/02/11 04:22:33 vgritsenko Exp $
    *
    */
   
  @@ -190,7 +190,7 @@
        * presence of a header before setting its value.
        *
        * @param        name        the name of the header to set
  -     * @param        value        the assigned date value
  +     * @param        date        the assigned date value
        *
        * @see #containsHeader
        * @see #addDateHeader
  @@ -206,7 +206,7 @@
        * to have multiple values.
        *
        * @param        name        the name of the header to set
  -     * @param        value        the additional date value
  +     * @param        date        the additional date value
        *
        * @see #setDateHeader
        */
  @@ -241,7 +241,33 @@
        */
   
       void addHeader(String name, String value);
  -}
   
  +    /**
  +     * Sets a response header with the given name and
  +     * int value. If the header had already
  +     * been set, the new value overwrites the previous one.  The
  +     * <code>containsHeader</code> method can be used to test for the
  +     * presence of a header before setting its value.
  +     *
  +     * @param        name        the name of the header to set
  +     * @param        value       the assigned int value
  +     *
  +     * @see #containsHeader
  +     * @see #addIntHeader
  +     */
  +
  +    void setIntHeader(String name, int value);
   
  +    /**
  +     * Adds a response header with the given name and
  +     * int value. This method allows response headers
  +     * to have multiple values.
  +     *
  +     * @param        name        the name of the header to set
  +     * @param        value       the additional int value
  +     *
  +     * @see #setIntHeader
  +     */
   
  +    void addIntHeader(String name, int value);
  +}
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message