Code example for HttpParams

Methods: setBooleanParameter

0
    protected static final boolean DEBUG = Jianjian.DEBUG;
 
    private static final String DEFAULT_CLIENT_VERSION = "com.liangshan.jianjian";
    private static final String CLIENT_VERSION_HEADER = "User-Agent";
    private static final int TIMEOUT = 60;
 
    private final DefaultHttpClient mHttpClient;
    private final String mClientVersion;
 
    public AbstractHttpApi(DefaultHttpClient httpClient, String clientVersion) {
        mHttpClient = httpClient;
        if (clientVersion != null) {
            mClientVersion = clientVersion;
        } else { 
            mClientVersion = DEFAULT_CLIENT_VERSION;
        } 
    } 
     
    /** 
     * Create a thread-safe client. This client does not do redirecting, to allow us to capture 
     * correct "error" codes.