Fix failing unit tests.
Add missing call to mark the Handshake request as finished.

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

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1458279 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54716
Make Calling on POJO method more robust if those methods throw an exception.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1458304 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54721
RemoteEndpoint blocks indefinitely if sendObject called with BinaryStream of TextStream encoders
Patch provided by Nick Williams.

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