Package edu.yale.its.tp.cas.util
Class SecureURL
- java.lang.Object
-
- edu.yale.its.tp.cas.util.SecureURL
-
-
Constructor Summary
Constructors Constructor Description SecureURL()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
For testing only...static String
retrieve(String url)
Retrieve the contents from the given URL as a String, assuming the URL's server matches what we expect it to match.static String
retrieve(String url, Boolean force_https)
-
-
-
Constructor Detail
-
SecureURL
public SecureURL()
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
For testing only...- Throws:
IOException
-
retrieve
public static String retrieve(String url) throws IOException
Retrieve the contents from the given URL as a String, assuming the URL's server matches what we expect it to match.- Throws:
IOException
-
retrieve
public static String retrieve(String url, Boolean force_https) throws IOException
- Throws:
IOException
-
-