diff src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 821:292f2e31ab41

remove ErrorHandler.ErrorPageMapper
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 14 Sep 2016 00:48:03 -0600
parents 8e9db0bbf4f9
children 6ebf86e4d2ca
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/AbstractHttpConnection.java	Tue Sep 13 23:13:06 2016 -0600
+++ b/src/org/eclipse/jetty/server/AbstractHttpConnection.java	Wed Sep 14 00:48:03 2016 -0600
@@ -502,17 +502,6 @@
                             _request.setAttribute(RequestDispatcher.ERROR_STATUS_CODE,new Integer(500));
                             _request.setAttribute(RequestDispatcher.ERROR_MESSAGE, _response.getReason());
                             _request.setDispatcherType(DispatcherType.ERROR);
-                            
-                            ErrorHandler eh = _request._async.getContextHandler().getErrorHandler();
-                            if (eh instanceof ErrorHandler.ErrorPageMapper)
-                            {
-                                String error_page=((ErrorHandler.ErrorPageMapper)eh).getErrorPage((HttpServletRequest)_request._async.getRequest());
-                                if (error_page!=null)
-                                { 
-                                    AsyncContinuation.AsyncEventState state = _request._async.getAsyncEventState();
-                                    state.setPath(error_page);
-                                }
-                            }
                         }
                         else
                             _request.setDispatcherType(DispatcherType.ASYNC);