Back-porting JSR-356
Add the locks to the SocketWrapper required to implement non-blocking IO

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1514653 13f79535-47bb-0310-9956-ffa450edef68
Back-porting JSR-356
Need to be able to register sockets for read and/or write for the APR/native Poller to implement non-blocking IO

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1514655 13f79535-47bb-0310-9956-ffa450edef68
Back-porting JSR-356
Old and new upgrade mechanisms have a isUpgrade() method on the processor and they need to be differentiated. Calls to the old version can easily be replaced so do so.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1514659 13f79535-47bb-0310-9956-ffa450edef68
Back-porting JSR-356
Rename ActionCode.UPGRADE to ActionCode.UPGRADE_TOMCAT to mark this as the Tomcat proprietary upgrade mechanism.
Add a new ActionCode.UPGRADE action for the Servlet 3.1 based upgrade mechanism.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1514661 13f79535-47bb-0310-9956-ffa450edef68
Back-porting JSR-356
Add InstanceManager to Context interface. This is required by the Servlet 3.1 based upgrade mechanism.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1514663 13f79535-47bb-0310-9956-ffa450edef68
Back-porting JSR-356
Add the Servlet 3.1 based HTTP upgrade mechanism. The aim at this point is to enable the back-ported JSR-356 code to compile. I'm not worried (right now) about whether the added code works or not as long as it doesn't break any existing Tomcat 7 functionality.

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