365375 ResourceHandler should be a HandlerWrapper

This commit is contained in:
Jan Bartel 2011-12-02 15:32:33 +11:00
parent 468e6c284d
commit c6480fc659
1 changed files with 7 additions and 1 deletions

View File

@ -51,7 +51,7 @@ import org.eclipse.jetty.util.resource.Resource;
*
* @org.apache.xbean.XBean
*/
public class ResourceHandler extends AbstractHandler
public class ResourceHandler extends HandlerWrapper
{
private static final Logger LOG = Log.getLogger(ResourceHandler.class);
@ -358,6 +358,8 @@ public class ResourceHandler extends AbstractHandler
{
if(!HttpMethods.HEAD.equals(request.getMethod()))
{
//try another handler
super.handle(target, baseRequest, request, response);
return;
}
skipContentBody = true;
@ -373,7 +375,11 @@ public class ResourceHandler extends AbstractHandler
resource = getStylesheet();
}
else
{
//no resource - try other handlers
super.handle(target, baseRequest, request, response);
return;
}
}
if (!_aliases && resource.getAlias()!=null)