public final class URLConnectionFactory extends Object
| Constructor and Description |
|---|
URLConnectionFactory(Settings settings)
Private constructor for this factory.
|
| Modifier and Type | Method and Description |
|---|---|
HttpURLConnection |
createHttpURLConnection(URL url)
Utility method to create an HttpURLConnection.
|
HttpURLConnection |
createHttpURLConnection(URL url,
boolean proxy)
Utility method to create an HttpURLConnection.
|
public URLConnectionFactory(Settings settings)
settings - reference to the configured settingspublic HttpURLConnection createHttpURLConnection(URL url) throws URLConnectionFailureException
url - the URL to connect toURLConnectionFailureException - thrown if there is an exceptionpublic HttpURLConnection createHttpURLConnection(URL url, boolean proxy) throws URLConnectionFailureException
url - the URL to connect toproxy - whether to use the proxy (if configured)URLConnectionFailureException - thrown if there is an exceptionCopyright © 2012–2020 OWASP. All rights reserved.