]> source.dussan.org Git - vaadin-framework.git/commitdiff
removed obsolete code due #1730 was fixed, cache time for response html also.
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 27 May 2008 07:25:25 +0000 (07:25 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 27 May 2008 07:25:25 +0000 (07:25 +0000)
svn changeset:4640/svn branch:trunk

src/com/itmill/toolkit/ui/LoginForm.java

index 2e1f85b7697aa1af8e6faf2eb079d537579f3e7f..34aea8ad2c07b9be407e1a8f546bd385cd8d9ed4 100644 (file)
@@ -49,15 +49,12 @@ public class LoginForm extends CustomComponent {
         }
 
         public String getFilename() {
-            return "login.html";
+            return "login";
         }
 
         public DownloadStream getStream() {
-            DownloadStream downloadStream = new DownloadStream(
-                    new ByteArrayInputStream(getLoginHTML()), getMIMEType(),
-                    getFilename());
-            downloadStream.setCacheTime(getCacheTime());
-            return downloadStream;
+            return new DownloadStream(new ByteArrayInputStream(getLoginHTML()),
+                    getMIMEType(), getFilename());
         }
 
         public String getMIMEType() {
@@ -93,8 +90,11 @@ public class LoginForm extends CustomComponent {
             if (window != null) {
                 window.removeURIHandler(this);
             }
-            return new DownloadStream(new ByteArrayInputStream(responce
-                    .getBytes()), "text/html", "loginSuccesfull.html");
+            DownloadStream downloadStream = new DownloadStream(
+                    new ByteArrayInputStream(responce.getBytes()), "text/html",
+                    "loginSuccesfull");
+            downloadStream.setCacheTime(-1);
+            return downloadStream;
         }
     };