Use URI not URL

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1460477 13f79535-47bb-0310-9956-ffa450edef68
Need to flip the buffer before converting it

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1460478 13f79535-47bb-0310-9956-ffa450edef68
Types won't be exact matches. Use isAssignableFrom

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