Package com.oorian.apis
Class WebApi
java.lang.Object
com.oorian.apis.WebApi
Abstract base class providing utility methods for making simple HTTP API calls
using
HttpURLConnection.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static HttpURLConnectiongetConnection(String pageUrl) protected static StringgetData(HttpURLConnection conn) protected static String
-
Constructor Details
-
WebApi
public WebApi()
-
-
Method Details
-
getConnection
- Throws:
IOException
-
getData
- Throws:
IOException
-
readStream
- Throws:
IOException
-