Code example for HttpGet

Methods: abort

0
    public Integer getStatusCode(){
        return this.response.getStatusLine().getStatusCode();
    } 
 
    public void close(){ 
        this.httpGet.abort();
        this.httpClient.getConnectionManager().shutdown();
    } 
 
 
    public boolean isGzip(){ 
        boolean isgzip=false;
        String gzip=getHeaderMap().get(HttpHeaders.CONTENT_ENCODING);
        if(gzip!=null&&gzip.toLowerCase().contains("gzip")){
            isgzip=true;
        } 
        return isgzip;
    } 
 
    public boolean isGzip(String url){
        boolean isgzip=false;