use of javax.servlet.http.HttpServletRequestWrapper in project processdash by dtuma.
the class WebAppContextDashboard method doHandle.
@Override
public void doHandle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
HttpServletRequest wrappedRequest = new HttpServletRequestWrapper((HttpServletRequest) Proxy.newProxyInstance(WebAppContextDashboard.class.getClassLoader(), new Class[] { HttpServletRequest.class }, new PrivilegedInvoker(request)));
IgnoreResponseErrors ignoreErr = new IgnoreResponseErrors((HttpServletResponse) Proxy.newProxyInstance(WebAppContextDashboard.class.getClassLoader(), new Class[] { HttpServletResponse.class }, new PrivilegedInvoker(response)));
super.doHandle(target, baseRequest, wrappedRequest, ignoreErr);
if (ignoreErr.ignored)
baseRequest.setHandled(false);
}
Aggregations