dev@glassfish.java.net

Re: Refactoring DefaultServlet.serveResource

From: Eirik Bjørsnøs <eirbjo_at_gmail.com>
Date: Thu, 16 Jun 2011 14:41:35 +0200

2011/6/15 Eirik Bjørsnøs <eirbjo_at_gmail.com>:
> Can any one look at DefaultServlet.serveResource and honestly say they
> have a good understanding of how this method actually works?
[..]
> Any takers?

I guess not :-)

I've filed http://java.net/jira/browse/GLASSFISH-16871 with a patch
which at least extracts methods for looking up a CacheEntry and for
validating/error handling.

This refactoring should hopefully make it easier to implement the
changes to resource lookup that I'm working on.

Thanks,
Eirik.