diff src/org/eclipse/jetty/server/handler/HandlerList.java @ 1000:32d4b569567c

simplify handle()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 19 Oct 2016 04:22:51 -0600
parents 3428c60d7cfc
children
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/handler/HandlerList.java	Wed Oct 19 00:59:46 2016 -0600
+++ b/src/org/eclipse/jetty/server/handler/HandlerList.java	Wed Oct 19 04:22:51 2016 -0600
@@ -21,7 +21,6 @@
 import java.io.IOException;
 
 import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 import org.eclipse.jetty.server.Handler;
@@ -35,24 +34,20 @@
  */
 public class HandlerList extends HandlerCollection
 {
-    /* ------------------------------------------------------------ */
-    /**
-     * @see Handler#handle(String, Request, HttpServletRequest, HttpServletResponse)
-     */
-    @Override
-    public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) 
-        throws IOException, ServletException
-    {
-        Handler[] handlers = getHandlers();
-        
-        if (handlers!=null && isStarted())
-        {
-            for (int i=0;i<handlers.length;i++)
-            {
-                handlers[i].handle(target,baseRequest, request, response);
-                if ( baseRequest.isHandled())
-                    return;
-            }
-        }
-    }
+	@Override
+	public void handle(String target, Request request, HttpServletResponse response) 
+		throws IOException, ServletException
+	{
+		Handler[] handlers = getHandlers();
+		
+		if (handlers!=null && isStarted())
+		{
+			for (int i=0;i<handlers.length;i++)
+			{
+				handlers[i].handle(target, request, response);
+				if ( request.isHandled())
+					return;
+			}
+		}
+	}
 }