You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by he...@apache.org on 2003/05/09 13:06:26 UTC

cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/util/parser CookieParser.java DefaultCookieParser.java

henning     2003/05/09 04:06:26

  Modified:    src/java/org/apache/turbine/util/parser CookieParser.java
                        DefaultCookieParser.java
  Log:
  - Un-Deprecate the setCookiePath and getCookiePath methods. By using the
    URI interface we can keep these as they are.
  
  - Bugfix the DefaultCookieParser implementation to use a DataURI, not a
    TurbineURI object.
  
  Revision  Changes    Path
  1.3       +1 -3      jakarta-turbine-2/src/java/org/apache/turbine/util/parser/CookieParser.java
  
  Index: CookieParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/util/parser/CookieParser.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CookieParser.java	7 May 2003 16:02:01 -0000	1.2
  +++ CookieParser.java	9 May 2003 11:06:26 -0000	1.3
  @@ -130,13 +130,11 @@
   
       /**
        * Get the Path where cookies will be stored
  -     * @deprecated Will be replaced by {@link org.apache.turbine.util.uri.TurbineURI} getCookiePath()
        */
       URI getCookiePath();
   
       /**
        * Set the path for cookie storage
  -     * @deprecated Will be replaced by setCookiePath({@link org.apache.turbine.util.uri.TurbineURI})
        */
       void setCookiePath(URI path);
   
  
  
  
  1.15      +3 -5      jakarta-turbine-2/src/java/org/apache/turbine/util/parser/DefaultCookieParser.java
  
  Index: DefaultCookieParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/util/parser/DefaultCookieParser.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- DefaultCookieParser.java	7 May 2003 16:02:01 -0000	1.14
  +++ DefaultCookieParser.java	9 May 2003 11:06:26 -0000	1.15
  @@ -63,8 +63,8 @@
   
   import org.apache.turbine.util.RunData;
   import org.apache.turbine.util.pool.Recyclable;
  +import org.apache.turbine.util.uri.DataURI;
   import org.apache.turbine.util.uri.URI;
  -import org.apache.turbine.util.uri.TurbineURI;
   
   /**
    * CookieParser is used to get and set values of Cookies on the Client
  @@ -189,7 +189,7 @@
           String enc = request.getCharacterEncoding();
           setCharacterEncoding(enc != null ? enc : "US-ASCII");
   
  -        cookiePath = new TurbineURI(data);
  +        cookiePath = new DataURI(data);
   
           Cookie[] cookies = request.getCookies();
   
  @@ -213,7 +213,6 @@
        * Get the Path where cookies will be stored
        *
        * @return path for cookie storage
  -     * @deprecated Will be replaced by {@link org.apache.turbine.util.uri.TurbineURI} getCookiePath()
        */
       public URI getCookiePath()
       {
  @@ -224,7 +223,6 @@
        * Set the path for cookie storage
        *
        * @param path path for cookie storage
  -     * @deprecated Will be replaced by setCookiePath({@link org.apache.turbine.util.uri.TurbineURI})
        */
       public void setCookiePath(URI cookiePath)
       {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org