// Path: http/src/main/java/org/ithot/android/transmit/http/Req.java
// static DualCache<String> _cache;
// 
// Path: http/src/main/java/org/ithot/android/transmit/http/Req.java
// static AsyncHttpClient client;
// 
// Path: http/src/main/java/org/ithot/android/transmit/http/Req.java
// static IHTTPHook ihttpHook;


import com.loopj.android.http.TextHttpResponseHandler;
import cz.msebera.android.httpclient.Header;
import static org.ithot.android.transmit.http.Req._cache;
import static org.ithot.android.transmit.http.Req.client;
import static org.ithot.android.transmit.http.Req.ihttpHook;
package org.ithot.android.transmit.http;




/**
 * 请求处理器
 */
public class HTTPHandler extends TextHttpResponseHandler {

    Req req;

    public HTTPHandler(Req req) {
        this.req = req;
    }

    @Override
    public void onSuccess(int status, Header[] headers, final String response) {
        Utils.Logger.debug(response);
        if (ihttpHook != null) {
            ihttpHook.post(req._context);
        }
// Path: http/src/main/java/org/ithot/android/transmit/http/Req.java
// static DualCache<String> _cache;
// 
// Path: http/src/main/java/org/ithot/android/transmit/http/Req.java
// static AsyncHttpClient client;
// 
// Path: http/src/main/java/org/ithot/android/transmit/http/Req.java
// static IHTTPHook ihttpHook;


// Path: http/src/main/java/org/ithot/android/transmit/http/HTTPHandler.java
import com.loopj.android.http.TextHttpResponseHandler;
import cz.msebera.android.httpclient.Header;
import static org.ithot.android.transmit.http.Req._cache;
import static org.ithot.android.transmit.http.Req.client;
import static org.ithot.android.transmit.http.Req.ihttpHook;

package org.ithot.android.transmit.http;




/**
 * 请求处理器
 */
public class HTTPHandler extends TextHttpResponseHandler {

    Req req;

    public HTTPHandler(Req req) {
        this.req = req;
    }

    @Override
    public void onSuccess(int status, Header[] headers, final String response) {
        Utils.Logger.debug(response);
        if (ihttpHook != null) {
            ihttpHook.post(req._context);
        }
        if (req._method == Method.GET) {