Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2015-07-17 01:54:18 +0000
committerGreg Wilkins2015-07-17 01:54:18 +0000
commit9ee4b64e89da30a0177a7dc95291e8af92816f5e (patch)
tree31bc48c95c8701f0d7d99e1b92942874d92f3932
parenta4a12e0e194b52a2668319d1a2e5fd06d59fc47c (diff)
downloadorg.eclipse.jetty.project-9ee4b64e89da30a0177a7dc95291e8af92816f5e.tar.gz
org.eclipse.jetty.project-9ee4b64e89da30a0177a7dc95291e8af92816f5e.tar.xz
org.eclipse.jetty.project-9ee4b64e89da30a0177a7dc95291e8af92816f5e.zip
472781, 472782 Improve GzipHandler Include/Exclude handling
Fixed javadoc
-rw-r--r--jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java1
-rw-r--r--jetty-util/src/main/java/org/eclipse/jetty/util/IncludeExclude.java24
2 files changed, 24 insertions, 1 deletions
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 b49744e9d5..f53eafdfa4 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 4c416b73ca..36354a6bd4 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.
+ * <p>The type of the underlying {@link Set} used may be passed into the
+ * constructor, so special sets like Servlet PathMap may be used.
+ * @param <E>
+ */
public class IncludeExclude<E>
{
private final Set<E> _includes;

Back to the top