X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=lib%2Fjetty%2Forg%2Feclipse%2Fjetty%2Fservlet%2FFilterMapping.java;h=749928cb8ff826cc0a557524d3e58f84ea0abb37;hp=1d5a9a4205473f69c0b488539cd7a6ffaa5f67ff;hb=ba4f228fa9f72d50991a2218cfd83987ef5d385e;hpb=875b5e9651498a0cd8e0001c0742ba843e47cad0 diff --git a/lib/jetty/org/eclipse/jetty/servlet/FilterMapping.java b/lib/jetty/org/eclipse/jetty/servlet/FilterMapping.java index 1d5a9a42..749928cb 100644 --- a/lib/jetty/org/eclipse/jetty/servlet/FilterMapping.java +++ b/lib/jetty/org/eclipse/jetty/servlet/FilterMapping.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2016 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 @@ -24,7 +24,6 @@ import java.util.EnumSet; import javax.servlet.DispatcherType; import org.eclipse.jetty.http.PathMap; -import org.eclipse.jetty.server.Handler; import org.eclipse.jetty.util.TypeUtil; import org.eclipse.jetty.util.annotation.ManagedAttribute; import org.eclipse.jetty.util.annotation.ManagedObject; @@ -67,19 +66,19 @@ public class FilterMapping implements Dumpable */ public static int dispatch(DispatcherType type) { - switch(type) - { - case REQUEST: - return REQUEST; - case ASYNC: - return ASYNC; - case FORWARD: - return FORWARD; - case INCLUDE: - return INCLUDE; - case ERROR: - return ERROR; - } + switch(type) + { + case REQUEST: + return REQUEST; + case ASYNC: + return ASYNC; + case FORWARD: + return FORWARD; + case INCLUDE: + return INCLUDE; + case ERROR: + return ERROR; + } throw new IllegalArgumentException(type.toString()); } @@ -124,8 +123,8 @@ public class FilterMapping implements Dumpable */ boolean appliesTo(int type) { - if (_dispatches==0) - return type==REQUEST || type==ASYNC && _holder.isAsyncSupported(); + if (_dispatches==0) + return type==REQUEST || type==ASYNC && _holder.isAsyncSupported(); return (_dispatches&type)!=0; }