hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r1038735 - in /hbase/trunk: CHANGES.txt src/main/java/org/apache/hadoop/hbase/rest/Main.java
Date Wed, 24 Nov 2010 18:13:00 GMT
Author: apurtell
Date: Wed Nov 24 18:12:59 2010
New Revision: 1038735

URL: http://svn.apache.org/viewvc?rev=1038735&view=rev
Log:
HBASE-3275 [rest] No gzip/deflate content encoding support

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/rest/Main.java

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1038735&r1=1038734&r2=1038735&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Wed Nov 24 18:12:59 2010
@@ -710,6 +710,7 @@ Release 0.90.0 - Unreleased
    HBASE-3272  Remove no longer used options
    HBASE-3269  HBase table truncate semantics seems broken as "disable" table
                is now async by default
+   HBASE-3275  [rest] No gzip/deflate content encoding support
 
 
   IMPROVEMENTS

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/rest/Main.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/rest/Main.java?rev=1038735&r1=1038734&r2=1038735&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/rest/Main.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/rest/Main.java Wed Nov 24 18:12:59 2010
@@ -37,6 +37,7 @@ import java.util.ArrayList;
 import org.mortbay.jetty.Server;
 import org.mortbay.jetty.servlet.Context;
 import org.mortbay.jetty.servlet.ServletHolder;
+import org.mortbay.servlet.GzipFilter;
 
 import com.sun.jersey.spi.container.servlet.ServletContainer;
 
@@ -132,6 +133,7 @@ public class Main implements Constants {
       // set up context
     Context context = new Context(server, "/", Context.SESSIONS);
     context.addServlet(sh, "/*");
+    context.addFilter(GzipFilter.class, "/*", 0);
 
     server.start();
     server.join();



Mime
View raw message