Package org.api.mtgstock.tools
Class URLUtilities
java.lang.Object
org.api.mtgstock.tools.URLUtilities
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.HttpResponseorg.apache.http.HttpResponseexecute(org.apache.http.client.methods.HttpRequestBase req) extractAndClose(org.apache.http.HttpResponse response) com.google.gson.JsonElementextractJson(String url) voidsetCallListener(URLCallListener listener2)
-
Field Details
-
logger
protected org.apache.logging.log4j.Logger logger
-
-
Constructor Details
-
URLUtilities
public URLUtilities()
-
-
Method Details
-
extractAndClose
- Throws:
IOException
-
execute
public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpRequestBase req) throws IOException - Throws:
IOException
-
doGet
- Throws:
IOException
-
extractJson
- Throws:
IOException
-
setCallListener
-