Add rudimentary support for http/https protocols in URL.

This commit is contained in:
Dain 2011-12-02 15:46:36 -07:00
parent 9ba7c504da
commit 651b0eb49a

View File

@ -81,7 +81,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();