Package org.api.cardtrader.tools
Class URLUtilities
java.lang.Object
org.api.cardtrader.tools.URLUtilities
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.apache.http.HttpResponseorg.apache.http.HttpResponseorg.apache.http.HttpResponsecom.google.gson.JsonObjectorg.apache.http.HttpResponsevoidvoidorg.apache.http.HttpResponseexecute(org.apache.http.client.methods.HttpRequestBase req) extractAndClose(org.apache.http.HttpResponse response) com.google.gson.JsonElementextractJson(String url) voidvoidsetCallListener(URLCallListener listener2)
-
Field Details
-
logger
protected org.apache.log4j.Logger logger
-
-
Constructor Details
-
URLUtilities
public URLUtilities()
-
-
Method Details
-
initToken
-
extractAndClose
- Throws:
IOException
-
execute
public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpRequestBase req) throws IOException - Throws:
IOException
-
doGet
- Throws:
IOException
-
doPost
- Throws:
IOException
-
doPost
public com.google.gson.JsonObject doPost(String url, com.google.gson.JsonElement el) throws IOException - Throws:
IOException
-
doPut
- Throws:
IOException
-
doDelete
- Throws:
IOException
-
doPost
public org.apache.http.HttpResponse doPost(String url, Map<String, String> headers) throws IOException- Throws:
IOException
-
doGet
public org.apache.http.HttpResponse doGet(String url, Map<String, String> headers) throws IOException- Throws:
IOException
-
download
- Throws:
IOException
-
extractJson
- Throws:
IOException
-
setCallListener
-