mirror of
https://github.com/corda/corda.git
synced 2025-01-23 04:48:09 +00:00
Add rudimentary support for http/https protocols in URL.
This commit is contained in:
parent
21610c1c9b
commit
c012e18a8b
@ -71,7 +71,11 @@ public final class URL {
|
|||||||
private static URLStreamHandler findHandler(String protocol)
|
private static URLStreamHandler findHandler(String protocol)
|
||||||
throws MalformedURLException
|
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();
|
return new avian.resource.Handler();
|
||||||
} else if ("file".equals(protocol)) {
|
} else if ("file".equals(protocol)) {
|
||||||
return new avian.file.Handler();
|
return new avian.file.Handler();
|
||||||
|
Loading…
Reference in New Issue
Block a user