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

simplify handle()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 19 Oct 2016 04:22:51 -0600
parents 7d28be82ab75
children
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/handler/RequestLogHandler.java	Wed Oct 19 00:59:46 2016 -0600
+++ b/src/org/eclipse/jetty/server/handler/RequestLogHandler.java	Wed Oct 19 04:22:51 2016 -0600
@@ -31,7 +31,6 @@
 
 import javax.servlet.ServletException;
 import javax.servlet.http.Cookie;
-import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 import org.eclipse.jetty.http.HttpHeaders;
@@ -53,21 +52,17 @@
 {
 	private static final Logger LOG = LoggerFactory.getLogger(RequestLogHandler.class);
 	
-	/* ------------------------------------------------------------ */
-	/* 
-	 * @see org.eclipse.jetty.server.server.Handler#handle(java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, int)
-	 */
 	@Override
-	public void handle(String target, final Request baseRequest, HttpServletRequest request, final HttpServletResponse response)
+	public void handle(String target, final Request request, final HttpServletResponse response)
 			throws IOException, ServletException
 	{
 		try
 		{
-			super.handle(target, baseRequest, request, response);
+			super.handle(target, request, response);
 		}
 		finally
 		{
-			log(baseRequest, (Response)response);
+			log(request, (Response)response);
 		}
 	}