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/matching CookieMatcher.java
Date Tue, 11 Jun 2002 23:54:54 GMT
vgritsenko    2002/06/11 16:54:54

  Modified:    src/java/org/apache/cocoon/matching CookieMatcher.java
  Log:
  Use ObjectModelHelper instead of deprecated Constants
  
  Revision  Changes    Path
  1.2       +2 -2      xml-cocoon2/src/java/org/apache/cocoon/matching/CookieMatcher.java
  
  Index: CookieMatcher.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/matching/CookieMatcher.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CookieMatcher.java	3 Mar 2002 01:03:48 -0000	1.1
  +++ CookieMatcher.java	11 Jun 2002 23:54:54 -0000	1.2
  @@ -53,9 +53,9 @@
   import org.apache.avalon.framework.logger.AbstractLoggable;
   import org.apache.avalon.framework.parameters.Parameters;
   
  -import org.apache.cocoon.Constants;
   import org.apache.cocoon.environment.Cookie;
   import org.apache.cocoon.environment.Request;
  +import org.apache.cocoon.environment.ObjectModelHelper;
   import org.apache.cocoon.sitemap.PatternException;
   
   import java.util.HashMap;
  @@ -75,7 +75,7 @@
               throw new PatternException("No cookie name given.");
           }
   
  -        Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT);
  +        Request request = ObjectModelHelper.getRequest(objectModel);
           Cookie[] cookies = request.getCookies();
           HashMap result = null;
   
  
  
  

----------------------------------------------------------------------
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