cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/transformation TraxTransformer.java
Date Sun, 15 Apr 2001 16:34:43 GMT
dims        01/04/15 09:34:43

  Modified:    src/org/apache/cocoon/transformation Tag: xml-cocoon2
                        TraxTransformer.java
  Log:
  Comment out the additional params to Stylesheet's pending discussion.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.20  +36 -35    xml-cocoon/src/org/apache/cocoon/transformation/Attic/TraxTransformer.java
  
  Index: TraxTransformer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/transformation/Attic/TraxTransformer.java,v
  retrieving revision 1.1.2.19
  retrieving revision 1.1.2.20
  diff -u -r1.1.2.19 -r1.1.2.20
  --- TraxTransformer.java	2001/04/15 13:56:03	1.1.2.19
  +++ TraxTransformer.java	2001/04/15 16:34:43	1.1.2.20
  @@ -65,7 +65,7 @@
    *         (Apache Software Foundation, Exoffice Technologies)
    * @author <a href="mailto:dims@yahoo.com">Davanum Srinivas</a>
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.1.2.19 $ $Date: 2001/04/15 13:56:03 $
  + * @version CVS $Revision: 1.1.2.20 $ $Date: 2001/04/15 16:34:43 $
    */
   public class TraxTransformer extends ContentHandlerWrapper
   implements Transformer, Composer, Recyclable, Configurable, Cacheable, Disposable {
  @@ -273,40 +273,41 @@
               }
           }
   
  -        try
  -        {
  -            /* Get the accept header; it's needed to get the browser type. */
  -            String accept = request.getParameter("accept");
  -            if (accept == null)
  -                accept = request.getHeader("accept");
  -
  -            /* Get the user agent; it's needed to get the browser type. */
  -            String agent = request.getParameter("user-Agent");
  -            if (agent == null) 
  -                agent = request.getHeader("user-Agent");
  -            
  -            /* add the accept param */
  -            transformerHandler.getTransformer().setParameter("accept", accept);
  -
  -            /* add the user agent param */
  -            transformerHandler.getTransformer().setParameter("user-agent", java.net.URLEncoder.encode(agent));
  -
  -            /* add the map param */
  -            HashMap map = browser.getBrowser(agent, accept);
  -            transformerHandler.getTransformer().setParameter("browser",map);
  -
  -            /* add the media param */
  -            String browserMedia = browser.getMedia(map);
  -            transformerHandler.getTransformer().setParameter("browser-media",map);
  -
  -            /* add the uaCapabilities param */
  -            org.w3c.dom.Document uaCapabilities = browser.getUACapabilities(map);
  -            transformerHandler.getTransformer().setParameter("ua-capabilities", uaCapabilities);
  -        } catch (Exception e) {
  -            /** FIXME - i don't have a logger
  -                (GP) now you have one :) */
  -            getLogger().error("Error setting Browser info", e);
  -        }
  +// FIXME(DIMS): Commented out pending discussion.
  +//        try
  +//        {
  +//            /* Get the accept header; it's needed to get the browser type. */
  +//            String accept = request.getParameter("accept");
  +//            if (accept == null)
  +//                accept = request.getHeader("accept");
  +//
  +//            /* Get the user agent; it's needed to get the browser type. */
  +//            String agent = request.getParameter("user-Agent");
  +//            if (agent == null) 
  +//                agent = request.getHeader("user-Agent");
  +//            
  +//            /* add the accept param */
  +//            transformerHandler.getTransformer().setParameter("accept", accept);
  +//
  +//            /* add the user agent param */
  +//            transformerHandler.getTransformer().setParameter("user-agent", java.net.URLEncoder.encode(agent));
  +//
  +//            /* add the map param */
  +//            HashMap map = browser.getBrowser(agent, accept);
  +//            transformerHandler.getTransformer().setParameter("browser",map);
  +//
  +//            /* add the media param */
  +//            String browserMedia = browser.getMedia(map);
  +//            transformerHandler.getTransformer().setParameter("browser-media",map);
  +//
  +//            /* add the uaCapabilities param */
  +//            org.w3c.dom.Document uaCapabilities = browser.getUACapabilities(map);
  +//            transformerHandler.getTransformer().setParameter("ua-capabilities", uaCapabilities);
  +//        } catch (Exception e) {
  +//            /** FIXME - i don't have a logger
  +//                (GP) now you have one :) */
  +//            getLogger().error("Error setting Browser info", e);
  +//        }
   
           super.setContentHandler(transformerHandler);
           if(transformerHandler instanceof Loggable) {
  
  
  

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