Class HttpConnection
- java.lang.Object
-
- in.cdac.medinfo.csnotk.csnolib.disb.db.HttpConnection
-
public class HttpConnection extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HttpConnection()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddisconnectHttpConnection(java.net.HttpURLConnection conn)Used for releasingHttpURLConnectionobject/resourcestatic java.net.HttpURLConnectiongetHttpURLConnection(java.lang.String url)It will be use for retrievingHttpURLConnection
-
-
-
Method Detail
-
getHttpURLConnection
public static java.net.HttpURLConnection getHttpURLConnection(java.lang.String url) throws java.lang.IllegalArgumentException, java.net.MalformedURLException, java.io.IOExceptionIt will be use for retrievingHttpURLConnection- Parameters:
url-String- Returns:
- true/false if URL is valid/invalid
- Throws:
java.lang.IllegalArgumentException- throws for wrong parameterjava.net.MalformedURLException- if any URL is not formed correctlyjava.io.IOException- throws for any IO operation
-
disconnectHttpConnection
public static void disconnectHttpConnection(java.net.HttpURLConnection conn)
Used for releasingHttpURLConnectionobject/resource- Parameters:
conn-HttpURLConnection
-
-