public class SimpleHTTPClient extends Object
Constructor and Description |
---|
SimpleHTTPClient(int readTimeout,
int connTimeout)
Generates a new SimpleHTTPClient with the appropriate timeouts.
|
Modifier and Type | Method and Description |
---|---|
String |
get(URL url)
Utility method for gathering the contents of an HTTP page.
|
public SimpleHTTPClient(int readTimeout, int connTimeout)
readTimeout
- read timeout value (greater than or equal to zero)connTimeout
- connection timeout value (greater than or equal to zero)public String get(URL url) throws IOException
url
- from which to attempt to retrieve the contentsIOException
- If there are any problems connecting to or gathering the contents of the pageCopyright © 2025 Open Identity Platform Community. All rights reserved.