Class GetURL

java.lang.Object
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 Details

    • GetURL

      public GetURL()
  • Method Details

    • 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