Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse McConnell2013-06-03 13:44:19 -0400
committerJesse McConnell2013-06-03 13:44:19 -0400
commit8b39cbe5bf2edef6cbd8374e37bfa484eaa6d92f (patch)
tree074a5cff203ee42e22c920324eb5c490f6776b4b /examples
parentfc87693ba99cde3b30a57ecafbd6c4794a6b6cb0 (diff)
downloadorg.eclipse.jetty.project-8b39cbe5bf2edef6cbd8374e37bfa484eaa6d92f.tar.gz
org.eclipse.jetty.project-8b39cbe5bf2edef6cbd8374e37bfa484eaa6d92f.tar.xz
org.eclipse.jetty.project-8b39cbe5bf2edef6cbd8374e37bfa484eaa6d92f.zip
update proxy example
Diffstat (limited to 'examples')
-rw-r--r--examples/embedded/src/main/java/org/eclipse/jetty/embedded/ProxyServer.java6
1 files changed, 1 insertions, 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 15cc12ab7d..e7aead73be 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();

Back to the top