From 8b39cbe5bf2edef6cbd8374e37bfa484eaa6d92f Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Mon, 3 Jun 2013 12:44:19 -0500 Subject: [PATCH] update proxy example --- .../main/java/org/eclipse/jetty/embedded/ProxyServer.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/ProxyServer.java b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/ProxyServer.java index 15cc12ab7d5..e7aead73beb 100644 --- a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/ProxyServer.java +++ b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/ProxyServer.java @@ -32,19 +32,15 @@ public class ProxyServer Server server = new Server(); ServerConnector connector = new ServerConnector(server); connector.setPort(8888); - server.addConnector(connector); // Setup proxy handler to handle CONNECT methods ConnectHandler proxy = new ConnectHandler(); -// proxy.setWhite(new String[]{"mail.google.com"}); -// proxy.addWhitelistHost("www.google.com"); server.setHandler(proxy); // Setup proxy servlet ServletContextHandler context = new ServletContextHandler(proxy, "/", ServletContextHandler.SESSIONS); ServletHolder proxyServlet = new ServletHolder(ProxyServlet.class); -// proxyServlet.setInitParameter("whiteList", "google.com, www.eclipse.org, localhost"); -// proxyServlet.setInitParameter("blackList", "google.com/calendar/*, www.eclipse.org/committers/"); + proxyServlet.setInitParameter("blackList", "www.eclipse.org"); context.addServlet(proxyServlet, "/*"); server.start();