From 9ee4b64e89da30a0177a7dc95291e8af92816f5e Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Fri, 17 Jul 2015 11:54:18 +1000 Subject: [PATCH] 472781, 472782 Improve GzipHandler Include/Exclude handling Fixed javadoc --- .../server/handler/gzip/GzipHandler.java | 1 - .../eclipse/jetty/util/IncludeExclude.java | 24 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java index b49744e9d5f..f53eafdfa48 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java @@ -20,7 +20,6 @@ package org.eclipse.jetty.server.handler.gzip; import java.io.File; import java.io.IOException; -import java.util.Arrays; import java.util.HashSet; import java.util.Set; import java.util.regex.Pattern; diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/IncludeExclude.java b/jetty-util/src/main/java/org/eclipse/jetty/util/IncludeExclude.java index 4c416b73ca9..36354a6bd43 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/IncludeExclude.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/IncludeExclude.java @@ -1,8 +1,32 @@ +// +// ======================================================================== +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + package org.eclipse.jetty.util; import java.util.HashSet; import java.util.Set; + +/** Utility class to maintain a set of inclusions and exclusions. + *

The type of the underlying {@link Set} used may be passed into the + * constructor, so special sets like Servlet PathMap may be used. + * @param + */ public class IncludeExclude { private final Set _includes;