Package org.openbravo.erpCommon.utility
Class HttpsUtils
- java.lang.Object
-
- org.openbravo.erpCommon.utility.HttpsUtils
-
public class HttpsUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpsUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpsURLConnection
getHttpsConn(URL url)
static boolean
isInternetAvailable()
Checks Internet availability.static HttpURLConnection
sendHttpsRequest(URL url, String data)
static String
sendSecure(URL url, String data)
-
-
-
Method Detail
-
sendSecure
public static String sendSecure(URL url, String data) throws GeneralSecurityException, IOException
- Throws:
GeneralSecurityException
IOException
-
sendHttpsRequest
public static HttpURLConnection sendHttpsRequest(URL url, String data) throws GeneralSecurityException, IOException
- Throws:
GeneralSecurityException
IOException
-
getHttpsConn
public static HttpsURLConnection getHttpsConn(URL url) throws KeyStoreException, GeneralSecurityException, IOException
-
isInternetAvailable
public static boolean isInternetAvailable()
Checks Internet availability. In case system information is defined to use proxy, proxy is set. Therefore this method should be invoked before each Internet connection.- Returns:
- true in case Internet (https://butler.openbravo.com) is reachable.
-
-