Package org.apache.ofbiz.base.util
Class URLConnector
java.lang.Object
org.apache.ofbiz.base.util.URLConnector
URLConnector.java
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
URLConnector
(URL url, String clientCertAlias, int hostCertLevel, boolean trustAnyCert) -
Method Summary
Modifier and TypeMethodDescriptionprotected URLConnection
openConnection
(int timeout) Open connection url connection.static URLConnection
openConnection
(URL url) static URLConnection
openConnection
(URL url, int timeout) static URLConnection
openConnection
(URL url, int timeout, String clientCertAlias, int hostCertLevel) static URLConnection
openConnection
(URL url, String clientCertAlias) static URLConnection
static URLConnection
openUntrustedConnection
(URL url, int timeout) static URLConnection
openUntrustedConnection
(URL url, int timeout, String clientCertAlias, int hostCertLevel) static URLConnection
openUntrustedConnection
(URL url, String clientCertAlias)
-
Constructor Details
-
URLConnector
protected URLConnector() -
URLConnector
-
-
Method Details
-
openConnection
Open connection url connection.- Parameters:
timeout
- the timeout- Returns:
- the url connection
- Throws:
IOException
- the io exception
-
openConnection
- Throws:
IOException
-
openConnection
- Throws:
IOException
-
openConnection
- Throws:
IOException
-
openConnection
public static URLConnection openConnection(URL url, int timeout, String clientCertAlias, int hostCertLevel) throws IOException - Throws:
IOException
-
openUntrustedConnection
- Throws:
IOException
-
openUntrustedConnection
- Throws:
IOException
-
openUntrustedConnection
public static URLConnection openUntrustedConnection(URL url, String clientCertAlias) throws IOException - Throws:
IOException
-
openUntrustedConnection
public static URLConnection openUntrustedConnection(URL url, int timeout, String clientCertAlias, int hostCertLevel) throws IOException - Throws:
IOException
-