Add rudimentary support for http/https protocols in URL.

This commit is contained in:
Dain 2011-12-02 15:46:36 -07:00
parent 21610c1c9b
commit c012e18a8b

View File

@ -71,7 +71,11 @@ public final class URL {
private static URLStreamHandler findHandler(String protocol)
throws MalformedURLException
{
if ("resource".equals(protocol)) {
if ("http".equals(protocol)) {
return new avian.file.Handler();
} else if ("https".equals(protocol)) {
return new avian.file.Handler();
} else if ("resource".equals(protocol)) {
return new avian.resource.Handler();
} else if ("file".equals(protocol)) {
return new avian.file.Handler();