Author: hqm
Date: 2007-11-27 13:36:52 -0800 (Tue, 27 Nov 2007)
New Revision: 7390

Modified:
   
openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/servlets/responders/ResponderSWF.java
Log:
Change 20071127-hqm-4 by [EMAIL PROTECTED] on 2007-11-27 10:44:20 EST
    in /cygdrive/c/users/hqm/openlaszlo/trunk/WEB-INF/lps/server/src
    for http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/server/src

Summary: remove krank code from LPS server

New Features:

Bugs Fixed: LPP-871

Technical Reviewer: ptw
QA Reviewer: mamye
Doc Reviewer:

Documentation:

Release Notes:

Details:
    
This code should never be used anymore, we don't have .lzo krank files. This
should just be removed before it trips someone up. 



Tests:

smokecheck




Modified: 
openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/servlets/responders/ResponderSWF.java
===================================================================
--- 
openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/servlets/responders/ResponderSWF.java
        2007-11-27 21:25:04 UTC (rev 7389)
+++ 
openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/servlets/responders/ResponderSWF.java
        2007-11-27 21:36:52 UTC (rev 7390)
@@ -3,7 +3,7 @@
  * 
****************************************************************************/
 
 /* J_LZ_COPYRIGHT_BEGIN *******************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2007 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * J_LZ_COPYRIGHT_END *********************************************************/
 
@@ -47,9 +47,6 @@
         ServletOutputStream output = null;
         InputStream input = null;
 
-        // Is this a request for an optimized file?
-        boolean opt = fileName.endsWith(".lzo");
-
         // Compile the file and send it out
         try {
             mLogger.info(
@@ -65,47 +62,7 @@
             Properties props = initCMgrProperties(req);
             String encoding = props.getProperty(LZHttpUtils.CONTENT_ENCODING);
 
-            if (opt) {
-                String objName = fileName;
-                File obj = new File(objName);
-                objName += ".gz";
-                File gz = new File(objName); 
-                // TODO: [2004-03-12 bloch] When we move to 1.4, we could use
-                // per-file locking (java.io.FileLock) to avoid the global 
lock here.
-                synchronized (mKrankEncodingLock) {
-                    if (encoding != null && encoding.equals("gzip")) {
-                        // Make sure gz is uptodate with obj
-                        if (!gz.exists() || gz.lastModified() < 
obj.lastModified()) {
-                            mLogger.info(
-/* (non-Javadoc)
- * @i18n.test
- * @org-mes="Encoding into " + p[0]
- */
-                        org.openlaszlo.i18n.LaszloMessages.getMessage(
-                                ResponderSWF.class.getName(),"051018-84", new 
Object[] {objName})
-);
-                            FileUtils.encode(obj, gz, "gzip");
-                        }
-                        input = new FileInputStream(objName);
-                    } else {
-                        // Simply make sure obj exists
-                        if (!obj.exists()) {
-                            mLogger.info(
-/* (non-Javadoc)
- * @i18n.test
- * @org-mes="Decoding into " + p[0]
- */
-                        org.openlaszlo.i18n.LaszloMessages.getMessage(
-                                ResponderSWF.class.getName(),"051018-98", new 
Object[] {objName})
-);
-                            FileUtils.decode(gz, obj, "gzip");
-                        }
-                        input = new FileInputStream(fileName);
-                    }
-                }
-            } else {
-                input = mCompMgr.getObjectStream(fileName, props);
-            }
+            input = mCompMgr.getObjectStream(fileName, props);
 
             long total = input.available();
             // Set length header before writing content.  WebSphere


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to