JETTY-1271 handled unavailable exception

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2255 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-09-07 23:46:26 +00:00
parent 71f4d444a5
commit 442c7995e6
2 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@ jetty-7.2-SNAPSHOT
+ JETTY-1250 Parallel start of HandlerCollection
+ JETTY-1256 annotation jars from Orbit
+ JETTY-1261 errant listener usage in StandardDescriptorProcessor
+ JETTY-1271 handled unavailable exception
+ Fix jetty-plus.xml for new configuration names
+ Added ignore to Logger interface
+ Improved debug dump

View File

@ -709,6 +709,7 @@ public class ContextHandler extends ScopedHandler implements Attributes, Server.
case __SHUTDOWN:
return false;
case __UNAVAILABLE:
baseRequest.setHandled(true);
response.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE);
return false;
default:
@ -924,6 +925,7 @@ public class ContextHandler extends ScopedHandler implements Attributes, Server.
catch(HttpException e)
{
Log.debug(e);
baseRequest.setHandled(true);
response.sendError(e.getStatus(), e.getReason());
}
finally