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

simplify handle()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 19 Oct 2016 04:22:51 -0600
parents 688c39c50ee3
children 3718afd99988
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/handler/DefaultHandler.java	Wed Oct 19 00:59:46 2016 -0600
+++ b/src/org/eclipse/jetty/server/handler/DefaultHandler.java	Wed Oct 19 04:22:51 2016 -0600
@@ -23,7 +23,6 @@
 import java.net.URL;
 
 import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 import org.eclipse.jetty.http.HttpHeaders;
@@ -57,16 +56,13 @@
 
 	boolean _showContexts=true;
 	
-	/* ------------------------------------------------------------ */
-	/* 
-	 * @see org.eclipse.jetty.server.server.Handler#handle(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, int)
-	 */
-	public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
+	@Override
+	public void handle(String target, Request request, HttpServletResponse response) throws IOException, ServletException
 	{              
-		if (response.isCommitted() || baseRequest.isHandled())
+		if (response.isCommitted() || request.isHandled())
 			return;
 		
-		baseRequest.setHandled(true);
+		request.setHandled(true);
 		
 		String method=request.getMethod();