|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.babel.url.URLUtilities
public class URLUtilities
Utility class URLUtiliites
is a collection of common
URL utility functions. All methods are declared as static. Supported
operations include expanding a file URL, reading the data from a URL
and returning it as a string, and enabling HTTPS support.
Constructor Summary | |
---|---|
URLUtilities()
|
Method Summary | |
---|---|
static void |
enableHTTPS()
Try to enable HTTPS support. |
static java.lang.String |
expandURL(java.lang.String url)
Expand an improperly formatted file URL to a properly formatted URL. |
static java.lang.String |
readURL(java.lang.String url)
Read data from a properly formatted URL and return it as a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLUtilities()
Method Detail |
---|
public static java.lang.String readURL(java.lang.String url) throws java.net.MalformedURLException, java.io.IOException
MalformedURLException
if the
URL is improperly formatted or an IOException
if there
is a problem reading the URL data.
java.net.MalformedURLException
java.io.IOException
public static java.lang.String expandURL(java.lang.String url)
public static void enableHTTPS()
URL
with an HTTPS protocol.
This enables HTTPS through the Sun JSSE
library. If
this library does not exist, then HTTPS is not enabled.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |