@@ -38,12 +38,64 @@ public BaseJsonHttpResponseHandler(String encoding) {
38
38
super (encoding );
39
39
}
40
40
41
- public void onSuccess (int statusCode , Header [] headers , String rawResponse , JSON_TYPE response ) {
41
+ @ Override
42
+ public final void onSuccess (int statusCode , Header [] headers , byte [] responseBody ) {
43
+ // Disabling this method
44
+ super .onSuccess (statusCode , headers , responseBody );
42
45
}
43
46
44
- public void onFailure (int statusCode , Header [] headers , Throwable e , String rawData , JSON_TYPE errorResponse ) {
47
+ @ Override
48
+ public final void onSuccess (String content ) {
49
+ // Disabling usage of this method, until removed from parent
50
+ super .onSuccess (content );
45
51
}
46
52
53
+ @ Override
54
+ public final void onSuccess (int statusCode , String content ) {
55
+ // Disabling usage of this method, until removed from parent
56
+ super .onSuccess (statusCode , content );
57
+ }
58
+
59
+ @ Override
60
+ public final void onFailure (String responseBody , Throwable error ) {
61
+ // Disabling usage of this method, until removed from parent
62
+ super .onFailure (responseBody , error );
63
+ }
64
+
65
+ @ Override
66
+ public final void onFailure (int statusCode , Header [] headers , byte [] responseBody , Throwable error ) {
67
+ //Disabling this method
68
+ super .onFailure (statusCode , headers , responseBody , error );
69
+ }
70
+
71
+ @ Override
72
+ public final void onFailure (Throwable error ) {
73
+ // Disabling usage of this method, until removed from parent
74
+ super .onFailure (error );
75
+ }
76
+
77
+ @ Override
78
+ public final void onFailure (Throwable error , String content ) {
79
+ // Disabling usage of this method, until removed from parent
80
+ super .onFailure (error , content );
81
+ }
82
+
83
+ @ Override
84
+ public final void onFailure (int statusCode , Throwable error , String content ) {
85
+ // Disabling usage of this method, until removed from parent
86
+ super .onFailure (statusCode , error , content );
87
+ }
88
+
89
+ @ Override
90
+ public final void onFailure (int statusCode , Header [] headers , Throwable error , String content ) {
91
+ // Disabling usage of this method, until removed from parent
92
+ super .onFailure (statusCode , headers , error , content );
93
+ }
94
+
95
+ public abstract void onSuccess (int statusCode , Header [] headers , String rawResponse , JSON_TYPE response );
96
+
97
+ public abstract void onFailure (int statusCode , Header [] headers , Throwable e , String rawData , JSON_TYPE errorResponse );
98
+
47
99
@ Override
48
100
public void onSuccess (final int statusCode , final Header [] headers , final String responseBody ) {
49
101
if (statusCode != HttpStatus .SC_NO_CONTENT ) {
0 commit comments