You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<AHREF="com/loopj/android/http/AsyncHttpResponseHandler.html" title="class in com.loopj.android.http" target="classFrame">AsyncHttpResponseHandler</A>
27
27
<BR>
28
+
<AHREF="com/loopj/android/http/BinaryHttpResponseHandler.html" title="class in com.loopj.android.http" target="classFrame">BinaryHttpResponseHandler</A>
29
+
<BR>
28
30
<AHREF="com/loopj/android/http/JsonHttpResponseHandler.html" title="class in com.loopj.android.http" target="classFrame">JsonHttpResponseHandler</A>
29
31
<BR>
30
32
<AHREF="com/loopj/android/http/PersistentCookieStore.html" title="class in com.loopj.android.http" target="classFrame">PersistentCookieStore</A>
Used to intercept and handle the responses from requests made using
103
+
Used to intercept and handle the responses from requests made using
104
104
<AHREF="../../../../com/loopj/android/http/AsyncHttpClient.html" title="class in com.loopj.android.http"><CODE>AsyncHttpClient</CODE></A>, with automatic parsing into a <AHREF="http://d.android.com/reference/org/json/JSONObject.html?is-external=true" title="class or interface in org.json"><CODE>JSONObject</CODE></A>
105
105
or <AHREF="http://d.android.com/reference/org/json/JSONArray.html?is-external=true" title="class or interface in org.json"><CODE>JSONArray</CODE></A>.
106
106
<p>
107
107
This class is designed to be passed to get, post, put and delete requests
108
108
with the <AHREF="../../../../com/loopj/android/http/JsonHttpResponseHandler.html#onSuccess(org.json.JSONObject)"><CODE>onSuccess(JSONObject)</CODE></A> or <AHREF="../../../../com/loopj/android/http/JsonHttpResponseHandler.html#onSuccess(org.json.JSONArray)"><CODE>onSuccess(JSONArray)</CODE></A>
109
109
methods anonymously overridden.
110
110
<p>
111
-
Additionally, you can override the other event methods from the
111
+
Additionally, you can override the other event methods from the
<THALIGN="left"><B>Fields inherited from class com.loopj.android.http.<AHREF="../../../../com/loopj/android/http/AsyncHttpResponseHandler.html" title="class in com.loopj.android.http">AsyncHttpResponseHandler</A></B></TH>
<TD><CODE><B><AHREF="../../../../com/loopj/android/http/JsonHttpResponseHandler.html#handleFailureMessage(java.lang.Throwable, java.lang.String)">handleFailureMessage</A></B>(<AHREF="http://d.android.com/reference/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> e,
166
+
<AHREF="http://d.android.com/reference/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> responseBody)</CODE>
<TD><CODE><B><AHREF="../../../../com/loopj/android/http/JsonHttpResponseHandler.html#handleSuccessMessage(java.lang.String)">handleSuccessMessage</A></B>(<AHREF="http://d.android.com/reference/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> responseBody)</CODE>
<TD><CODE><B><AHREF="../../../../com/loopj/android/http/JsonHttpResponseHandler.html#onFailure(java.lang.Throwable, org.json.JSONArray)">onFailure</A></B>(<AHREF="http://d.android.com/reference/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> e,
183
+
<AHREF="http://d.android.com/reference/org/json/JSONArray.html?is-external=true" title="class or interface in org.json">JSONArray</A> errorResponse)</CODE>
<TD><CODE><B><AHREF="../../../../com/loopj/android/http/JsonHttpResponseHandler.html#onFailure(java.lang.Throwable, org.json.JSONObject)">onFailure</A></B>(<AHREF="http://d.android.com/reference/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> e,
192
+
<AHREF="http://d.android.com/reference/org/json/JSONObject.html?is-external=true" title="class or interface in org.json">JSONObject</A> errorResponse)</CODE>
193
+
194
+
<BR>
195
+
Handle cases where a failure is returned as JSON</TD>
<TD><CODE><B><AHREF="../../../../com/loopj/android/http/JsonHttpResponseHandler.html#onSuccess(org.json.JSONArray)">onSuccess</A></B>(<AHREF="http://d.android.com/reference/org/json/JSONArray.html?is-external=true" title="class or interface in org.json">JSONArray</A> response)</CODE>
156
201
157
202
<BR>
@@ -182,7 +227,7 @@ <H2>
182
227
<THALIGN="left"><B>Methods inherited from class com.loopj.android.http.<AHREF="../../../../com/loopj/android/http/AsyncHttpResponseHandler.html" title="class in com.loopj.android.http">AsyncHttpResponseHandler</A></B></TH>
<DD><CODE><AHREF="http://d.android.com/reference/org/json/JSONException.html?is-external=true" title="class or interface in org.json">JSONException</A></CODE></DL>
public void <B>onFailure</B>(<AHREF="http://d.android.com/reference/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> e,
334
+
<AHREF="http://d.android.com/reference/org/json/JSONObject.html?is-external=true" title="class or interface in org.json">JSONObject</A> errorResponse)</PRE>
335
+
<DL>
336
+
<DD>Handle cases where a failure is returned as JSON
public void <B>onFailure</B>(<AHREF="http://d.android.com/reference/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> e,
348
+
<AHREF="http://d.android.com/reference/org/json/JSONArray.html?is-external=true" title="class or interface in org.json">JSONArray</A> errorResponse)</PRE>
protected void <B>handleFailureMessage</B>(<AHREF="http://d.android.com/reference/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> e,
360
+
<AHREF="http://d.android.com/reference/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> responseBody)</PRE>
361
+
<DL>
362
+
<DD><DL>
363
+
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../../com/loopj/android/http/AsyncHttpResponseHandler.html#handleFailureMessage(java.lang.Throwable, java.lang.String)">handleFailureMessage</A></CODE> in class <CODE><AHREF="../../../../com/loopj/android/http/AsyncHttpResponseHandler.html" title="class in com.loopj.android.http">AsyncHttpResponseHandler</A></CODE></DL>
0 commit comments