HBASE-3275 [rest] No gzip/deflate content encoding support
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1038735 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f31bd00974
commit
9b45d9996f
|
@ -710,6 +710,7 @@ Release 0.90.0 - Unreleased
|
||||||
HBASE-3272 Remove no longer used options
|
HBASE-3272 Remove no longer used options
|
||||||
HBASE-3269 HBase table truncate semantics seems broken as "disable" table
|
HBASE-3269 HBase table truncate semantics seems broken as "disable" table
|
||||||
is now async by default
|
is now async by default
|
||||||
|
HBASE-3275 [rest] No gzip/deflate content encoding support
|
||||||
|
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
|
|
|
@ -37,6 +37,7 @@ import java.util.ArrayList;
|
||||||
import org.mortbay.jetty.Server;
|
import org.mortbay.jetty.Server;
|
||||||
import org.mortbay.jetty.servlet.Context;
|
import org.mortbay.jetty.servlet.Context;
|
||||||
import org.mortbay.jetty.servlet.ServletHolder;
|
import org.mortbay.jetty.servlet.ServletHolder;
|
||||||
|
import org.mortbay.servlet.GzipFilter;
|
||||||
|
|
||||||
import com.sun.jersey.spi.container.servlet.ServletContainer;
|
import com.sun.jersey.spi.container.servlet.ServletContainer;
|
||||||
|
|
||||||
|
@ -132,6 +133,7 @@ public class Main implements Constants {
|
||||||
// set up context
|
// set up context
|
||||||
Context context = new Context(server, "/", Context.SESSIONS);
|
Context context = new Context(server, "/", Context.SESSIONS);
|
||||||
context.addServlet(sh, "/*");
|
context.addServlet(sh, "/*");
|
||||||
|
context.addFilter(GzipFilter.class, "/*", 0);
|
||||||
|
|
||||||
server.start();
|
server.start();
|
||||||
server.join();
|
server.join();
|
||||||
|
|
Loading…
Reference in New Issue