-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f79268a
commit 7e85cf2
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
httpclient/src/main/java/com/zanjou/http/response/OkJsonResponseListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.zanjou.http.response; | ||
|
||
import android.util.Log; | ||
|
||
import org.json.JSONException; | ||
import org.json.JSONObject; | ||
|
||
/** | ||
* Created by Andersson G. Acosta on 10/01/17. | ||
*/ | ||
public abstract class OkJsonResponseListener extends JsonResponseListener { | ||
|
||
private static final String TAG = "OkResponseListener"; | ||
|
||
@Override | ||
public void onErrorResponse(JSONObject jsonObject) throws JSONException { | ||
|
||
} | ||
|
||
@Override | ||
public void onParseError(JSONException e) { | ||
Log.e(TAG, "Error", e); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
httpclient/src/main/java/com/zanjou/http/response/OkXmlResponseListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.zanjou.http.response; | ||
|
||
import android.util.Log; | ||
|
||
import org.json.JSONException; | ||
import org.json.JSONObject; | ||
import org.w3c.dom.Document; | ||
|
||
/** | ||
* Created by Andersson G. Acosta on 10/01/17. | ||
*/ | ||
public abstract class OkXmlResponseListener extends XmlResponseListener { | ||
|
||
private static final String TAG = "OkResponseListener"; | ||
|
||
|
||
@Override | ||
public void onErrorResponse(Document document) { | ||
|
||
} | ||
|
||
@Override | ||
public void onParseError(Exception e) { | ||
Log.e(TAG, "Error", e); | ||
} | ||
} |