DLESE Tools
v1.6.0

org.dlese.dpc.util
Class GetURL

java.lang.Object
  extended by org.dlese.dpc.util.GetURL

public final class GetURL
extends Object

URL is a utility class for retreiving the contents of a given URL as a string

Author:
Ryan Deardorff

Constructor Summary
GetURL()
           
 
Method Summary
 String getUrl()
          Gets the url attribute of the GetURL class
static String getUrl(String address, boolean reportException)
          Gets the url attribute of the GetURL class
static String getURL(String address, boolean reportException)
          Gets the url as a string
 void setAddress(String address)
          Sets the address attribute of the GetURL object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetURL

public GetURL()
Method Detail

getURL

public static String getURL(String address,
                            boolean reportException)
Gets the url as a string

Parameters:
address - URL
reportException - if an exception is thrown, should it be reported?
Returns:
The url value

getUrl

public static String getUrl(String address,
                            boolean reportException)
Gets the url attribute of the GetURL class

Parameters:
address -
reportException -
Returns:
The url value

getUrl

public String getUrl()
Gets the url attribute of the GetURL class

Returns:
The url value

setAddress

public void setAddress(String address)
Sets the address attribute of the GetURL object

Parameters:
address - The new address value

DLESE Tools
v1.6.0