Code example for HttpGet

Methods: abort

0
		return uriBuilder.toString();
	} 
 
	protected void getMethod(StreamData data, String url) throws ArtAroundException {
		final AndroidHttpClient client = getNewHttpClient();
		final HttpGet getRequest = new HttpGet(url);
 
		try { 
			HttpResponse response = client.execute(getRequest);
			parseHttpResponse(data, url, response);
		} 
		catch (IOException e) {
			throw new ArtAroundException(e);
		} 
		finally { 
			if (getRequest != null) {
				getRequest.abort();
			} 
			if (client != null) {
				client.close();
			} 
		} 
Contextual code suggestions in your IDE  Get Codota for Java