Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Sternberg2011-01-27 18:03:10 +0000
committerRalf Sternberg2011-01-27 18:03:10 +0000
commitbeeb86723c16a05459d9aa6c0008a307da004a0c (patch)
treebbdaec264b6dfe961cfab11fa2f143a5020b0bc0 /bundles
parente0a5784a90f93ebd6370976948cdef5e079a729b (diff)
downloadorg.eclipse.rap-beeb86723c16a05459d9aa6c0008a307da004a0c.tar.gz
org.eclipse.rap-beeb86723c16a05459d9aa6c0008a307da004a0c.tar.xz
org.eclipse.rap-beeb86723c16a05459d9aa6c0008a307da004a0c.zip
Minor formatting
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/service/JSLibraryServiceHandler.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/bundles/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/service/JSLibraryServiceHandler.java b/bundles/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/service/JSLibraryServiceHandler.java
index 04f6b8b645..481d957c6d 100644
--- a/bundles/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/service/JSLibraryServiceHandler.java
+++ b/bundles/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/service/JSLibraryServiceHandler.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 Innoopract Informationssysteme GmbH.
+ * Copyright (c) 2008, 2011 Innoopract Informationssysteme GmbH.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -44,7 +44,6 @@ public class JSLibraryServiceHandler implements IServiceHandler {
public final static String CONTENT_ENCODING = "Content-Encoding";
public final static String ENCODING_GZIP = "gzip";
public final static String ACCEPT_ENCODING = "Accept-Encoding";
-
private static final String EXPIRES = "Expires";
static final String EXPIRES_NEVER = "Sun, 17 Jan 2038 19:14:07 GMT";
@@ -80,7 +79,8 @@ public class JSLibraryServiceHandler implements IServiceHandler {
}
private static void writeCompressedOutput() throws IOException {
- RWT.getResponse().setHeader( JSLibraryServiceHandler.CONTENT_ENCODING, JSLibraryServiceHandler.ENCODING_GZIP );
+ RWT.getResponse().setHeader( JSLibraryServiceHandler.CONTENT_ENCODING,
+ JSLibraryServiceHandler.ENCODING_GZIP );
HttpServletResponse response = RWT.getResponse();
OutputStream out = new BufferedOutputStream( response.getOutputStream() );
write( out, compressed );
@@ -122,14 +122,16 @@ public class JSLibraryServiceHandler implements IServiceHandler {
}
private static boolean isAcceptEncoding() {
- String encodings = RWT.getRequest().getHeader( JSLibraryServiceHandler.ACCEPT_ENCODING );
- return encodings != null && encodings.indexOf( JSLibraryServiceHandler.ENCODING_GZIP ) != -1;
+ String encodings
+ = RWT.getRequest().getHeader( JSLibraryServiceHandler.ACCEPT_ENCODING );
+ return encodings != null
+ && encodings.indexOf( JSLibraryServiceHandler.ENCODING_GZIP ) != -1;
}
private static IConfiguration getConfiguration() {
return ConfigurationReader.getConfiguration();
}
-
+
private static JsConcatenator getJsConcatenator() {
IResourceManager manager = ResourceManager.getInstance();
Adaptable adaptable = ( Adaptable )manager;

Back to the top