public CloseableHttpResponse sendRequest(RequestObject reqObj) {
	    //针对不同的请求类型分别进行发送
	    CloseableHttpResponse response = null;
	    
	    
	    String url = reqObj.toUrl();
	    
	    try {
		    //GET 请求
		    if(reqObj.getRequestType() == RequestType.GET) {
		    	HttpGet httpGet = new HttpGet(url);
		    	httpGet.setConfig(globalConfig);
				response = httpClient.execute(httpGet, context);
		    }
		    //POST 请求
		    else if (reqObj.getRequestType() == RequestType.POST) {
		    	HttpPost httpPost = new HttpPost(url);
		    	
		    	httpPost.setConfig(globalConfig);
		    	
		    	httpPost.setEntity(reqObj.buildRequestEntity());
		    	
				response = httpClient.execute(httpPost, context);
			}
		    //PUT 请求
		    else if (reqObj.getRequestType() == RequestType.PUT) {
		    	HttpPost httpPut = new HttpPost(url);
		    	
		    	httpPut.setConfig(globalConfig);
		    	
		    	//目前大部分框架不支持PUT请求，使用_method调用
		    	reqObj.putParam(RequestConstants.STR_METHOD_NAME, RequestType.PUT.toString());
		    	httpPut.setEntity(reqObj.buildRequestEntity());
		    	
				response = httpClient.execute(httpPut, context);
			}
		    //DELETE请求
		    else if (reqObj.getRequestType() == RequestType.DELETE) {
				HttpDelete httpDelete = new HttpDelete(url);
				
				httpDelete.setConfig(globalConfig);
				
		    	//目前大部分框架不支持PUT请求，使用_method调用
		    	reqObj.putParam(RequestConstants.STR_METHOD_NAME, RequestType.DELETE.toString());
				response = httpClient.execute(httpDelete, context);
			}
		    
		} catch (ClientProtocolException e) {
			logger.error(RequestConstants.MSG_CLIENT_PROTOCOL_ERROR + e.toString());
		} catch (IOException e) {
			logger.error(RequestConstants.MSG_CLIENT_IO_ERROR + e.toString());
		}
	    
		return response;
	}