@@ -38,10 +38,10 @@ public BaseJsonHttpResponseHandler(String encoding) {
38
38
super (encoding );
39
39
}
40
40
41
- public void onSuccess (int statusCode , Header [] headers , JSON_TYPE response ) {
41
+ public void onSuccess (int statusCode , Header [] headers , String rawResponse , JSON_TYPE response ) {
42
42
}
43
43
44
- public void onFailure (int statusCode , Header [] headers , Throwable e , JSON_TYPE errorResponse ) {
44
+ public void onFailure (int statusCode , Header [] headers , Throwable e , String rawData , JSON_TYPE errorResponse ) {
45
45
}
46
46
47
47
@ Override
@@ -55,22 +55,22 @@ public void run() {
55
55
postRunnable (new Runnable () {
56
56
@ Override
57
57
public void run () {
58
- onSuccess (statusCode , headers , jsonResponse );
58
+ onSuccess (statusCode , headers , responseBody , jsonResponse );
59
59
}
60
60
});
61
61
} catch (final Throwable t ) {
62
62
Log .d (LOG_TAG , "parseResponse thrown an problem" , t );
63
63
postRunnable (new Runnable () {
64
64
@ Override
65
65
public void run () {
66
- onFailure (statusCode , headers , t , ( JSON_TYPE ) null );
66
+ onFailure (statusCode , headers , t , responseBody , null );
67
67
}
68
68
});
69
69
}
70
70
}
71
71
}).start ();
72
72
} else {
73
- onSuccess (statusCode , headers , ( JSON_TYPE ) null );
73
+ onSuccess (statusCode , headers , null , null );
74
74
}
75
75
}
76
76
@@ -85,22 +85,22 @@ public void run() {
85
85
postRunnable (new Runnable () {
86
86
@ Override
87
87
public void run () {
88
- onFailure (statusCode , headers , e , jsonResponse );
88
+ onFailure (statusCode , headers , e , responseBody , jsonResponse );
89
89
}
90
90
});
91
91
} catch (Throwable t ) {
92
92
Log .d (LOG_TAG , "parseResponse thrown an problem" , t );
93
93
postRunnable (new Runnable () {
94
94
@ Override
95
95
public void run () {
96
- onFailure (statusCode , headers , e , ( JSON_TYPE ) null );
96
+ onFailure (statusCode , headers , e , responseBody , null );
97
97
}
98
98
});
99
99
}
100
100
}
101
101
}).start ();
102
102
} else {
103
- onFailure (statusCode , headers , e , ( JSON_TYPE ) null );
103
+ onFailure (statusCode , headers , e , null , null );
104
104
}
105
105
}
106
106
0 commit comments