comparison src/org/eclipse/jetty/server/handler/RequestLogHandler.java @ 991:688c39c50ee3

simplify ContextHandler
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 18 Oct 2016 00:22:46 -0600
parents a088981f9cd4
children 7d28be82ab75
comparison
equal deleted inserted replaced
990:83cc6e05a58f 991:688c39c50ee3
27 import java.text.DateFormat; 27 import java.text.DateFormat;
28 import java.text.SimpleDateFormat; 28 import java.text.SimpleDateFormat;
29 import java.util.Locale; 29 import java.util.Locale;
30 import java.util.TimeZone; 30 import java.util.TimeZone;
31 31
32 import javax.servlet.DispatcherType;
33 import javax.servlet.ServletException; 32 import javax.servlet.ServletException;
34 import javax.servlet.http.Cookie; 33 import javax.servlet.http.Cookie;
35 import javax.servlet.http.HttpServletRequest; 34 import javax.servlet.http.HttpServletRequest;
36 import javax.servlet.http.HttpServletResponse; 35 import javax.servlet.http.HttpServletResponse;
37 36
68 { 67 {
69 super.handle(target, baseRequest, request, response); 68 super.handle(target, baseRequest, request, response);
70 } 69 }
71 finally 70 finally
72 { 71 {
73 if (baseRequest.getDispatcherType().equals(DispatcherType.REQUEST)) 72 log(baseRequest, (Response)response);
74 {
75 log(baseRequest, (Response)response);
76 }
77 } 73 }
78 } 74 }
79 75
80 /* ------------------------------------------------------------ */ 76 /* ------------------------------------------------------------ */
81 77