Implement third part of pull request from Greg Wilkins to make Jasper more independent from Tomcat.
Add support for using an existing list of TLDs rather than scanning for them
This closes #4

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1597617 13f79535-47bb-0310-9956-ffa450edef68
Simplify available() and isFinished() as current implementation broke Comet chat example.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1597649 13f79535-47bb-0310-9956-ffa450edef68
ISE is expected when using AsyncChannels. Handle it the same way an IOException is handled rather than expecting the client code to catch and handle it.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1597652 13f79535-47bb-0310-9956-ffa450edef68
Refactor test to enable a clean server shutdown. This prevents the web application class loader complaining about a still running thread on server stop.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1597662 13f79535-47bb-0310-9956-ffa450edef68
Add license header

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1597753 13f79535-47bb-0310-9956-ffa450edef68
Add license header

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1597754 13f79535-47bb-0310-9956-ffa450edef68
Add license header

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1597755 13f79535-47bb-0310-9956-ffa450edef68
Discern the first and the second requests in the test case.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1597759 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55282
o.a.t.util.descriptor.web.ApplicationListener overrides equals and hashCode methods.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1597855 13f79535-47bb-0310-9956-ffa450edef68
Fix copy/paste error and return a 500 rather 400 response

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1597982 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56555
When Tomcat closes the connection based on the HTTP status code of the response, ensure that only one connection header is sent to the client.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1597987 13f79535-47bb-0310-9956-ffa450edef68
No need for the expectation check in an error state as the connection will be closed any way.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1598153 13f79535-47bb-0310-9956-ffa450edef68
Fix indent

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1598242 13f79535-47bb-0310-9956-ffa450edef68
Remove Response methods where the only function is to call action() and call action() directly.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1598246 13f79535-47bb-0310-9956-ffa450edef68
Remove unnecessary method

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1598248 13f79535-47bb-0310-9956-ffa450edef68
Better comments
Formatting (use longer line lengths)

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1598266 13f79535-47bb-0310-9956-ffa450edef68
Formatting clean-up
No functional change

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1598267 13f79535-47bb-0310-9956-ffa450edef68
Less fuzzy way to call onDataAvailable (no real fix though).

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1598269 13f79535-47bb-0310-9956-ffa450edef68
Check committed before changing any field values
Remove various incorrect comments

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1598304 13f79535-47bb-0310-9956-ffa450edef68
Simplify logic
Call Response.recycle() from Response.reset() rather than in Response.reset():
 - doing ~half of what recycle() does
 - calling ActionCode.RESET which resets the OutputBuffer which in turn calls Response.recycle()

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1598307 13f79535-47bb-0310-9956-ffa450edef68