Best code examples for Android AbstractHttpClient class (org.apache.http.impl.client.AbstractHttpClient)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android AbstractHttpClient class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android AbstractHttpClient examples from Open Source projects
This code example shows how to use the following methods: execute
43:	DefaultHttpClient httpclient = new DefaultHttpClient(); 
-
45:	httpclient.execute(httpget); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: addRequestInterceptor, addResponseInterceptor, setHttpRequestRetryHandler
136:	httpClient = new DefaultHttpClient(cm, httpParams); 
137:	httpClient.addRequestInterceptor(new HttpRequestInterceptor() { 
-
149:	httpClient.addResponseInterceptor(new HttpResponseInterceptor() { 
-
168:	httpClient.setHttpRequestRetryHandler(new RetryHandler(DEFAULT_MAX_RETRIES)); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getConnectionManager, setParams, setRoutePlanner, setRedirectStrategy
72:	DefaultHttpClient gridClient = new DefaultHttpClient(gridClientConnectionManager); 
73:	gridClient.setRedirectStrategy(new MyRedirectHandler()); 
74:	gridClient.setParams(getGridHttpParams(connection_timeout, socket_timeout)); 
75:	gridClient.setRoutePlanner( 
76:	getRoutePlanner(gridClient.getConnectionManager().getSchemeRegistry())); 
77:	gridClient.getConnectionManager().closeIdleConnections(100, TimeUnit.MILLISECONDS); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: execute, getCredentialsProvider
83:	HttpResponse httpResponse = httpClient.execute(new HttpGet(webAppURL.toURI())); 
-
104:	DefaultHttpClient httpClient = new DefaultHttpClient(); 
-
108:	httpClient.getCredentialsProvider().setCredentials(new AuthScope(webAppURL.getHost(), webAppURL.getPort(), DEPLOYMENT_REALM_NAME), credentials); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: execute
94:	DefaultHttpClient client = new DefaultHttpClient(new PoolingClientConnectionManager()); 
-
97:	HttpResponse result = client.execute(get); 
98:	result = client.execute(get); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: execute
85:	DefaultHttpClient httpclient = new DefaultHttpClient(); 
86:	HttpResponse response = httpclient.execute(new HttpGet(cookieReadURL.toURI() + "CookieReadServlet")); 
-
91:	response = httpclient.execute(new HttpPost(cookieReadURL.toURI() + "CookieReadServlet")); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: execute, getConnectionManager
82:	DefaultHttpClient httpclient = new DefaultHttpClient(connMgr, params); 
-
91:	HttpResponse httpResponse = httpclient.execute(targetHost, httpget); 
-
117:	httpclient.getConnectionManager().shutdown(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addRequestInterceptor, execute, getCredentialsProvider
76:	h = new DefaultHttpClient(params); 
-
78:	h.getCredentialsProvider().setCredentials(AuthScope.ANY, auth); 
-
83:	h.addRequestInterceptor(new PreemptiveAuth(), 0); 
-
85:	return h.execute(new HttpHost(host, port, scheme), req); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: execute
188:	response = httpClient.execute(httpGet); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: execute
90:	DefaultHttpClient httpclient = new DefaultHttpClient(); 
-
93:	HttpResponse response = httpclient.execute(httpget); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: execute
93:	DefaultHttpClient client = new DefaultHttpClient(getTimeoutHttpParams()); 
94:	HttpResponse response = client.execute(request); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addRequestInterceptor, execute, getConnectionManager, getParams
116:	DefaultHttpClient client = new DefaultHttpClient(); 
-
119:	client.getParams().setParameter(ClientPNames.HANDLE_REDIRECTS, 
-
122:	client.addRequestInterceptor(new HttpRequestInterceptor() { 
-
172:	HttpResponse response = client.execute( method ); 
-
182:	client.getConnectionManager().shutdown(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: execute, getConnectionManager
87:	DefaultHttpClient httpclient = new DefaultHttpClient(connMgr, params); 
-
109:	HttpResponse httpResponse = httpclient.execute(targetHost, httpost); 
-
135:	httpclient.getConnectionManager().shutdown(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setKeepAliveStrategy, setReuseStrategy
184:	DefaultHttpClient httpClient = new DefaultHttpClient(mConnectionManager, params); 
185:	httpClient.setKeepAliveStrategy(new ConnectionKeepAliveStrategy() { 
-
193:	httpClient.setReuseStrategy(new ConnectionReuseStrategy() { 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: removeRequestInterceptorByClass, removeResponseInterceptorByClass
126:	httpClient.removeRequestInterceptorByClass(GzipHttpRequestInterceptor.class); 
127:	httpClient.removeResponseInterceptorByClass(GzipHttpResponseInterceptor.class); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: execute
187:	DefaultHttpClient httpclient = new DefaultHttpClient(); 
-
193:	response = httpclient.execute(httpget); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: addRequestInterceptor, getCredentialsProvider
296:	DefaultHttpClient client = new DefaultHttpClient( 
-
299:	client.getCredentialsProvider().setCredentials( 
-
302:	client.addRequestInterceptor( 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addRequestInterceptor, addResponseInterceptor, setHttpRequestRetryHandler
145:	httpClient = new DefaultHttpClient(cm, httpParams); 
146:	httpClient.addRequestInterceptor(new HttpRequestInterceptor() { 
-
157:	httpClient.addResponseInterceptor(new HttpResponseInterceptor() { 
-
172:	httpClient.setHttpRequestRetryHandler(new RetryHandler(DEFAULT_MAX_RETRIES)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: execute, setParams
21:	DefaultHttpClient httpclient = new DefaultHttpClient(); 
22:	httpclient.setParams(httpparams); 
-
25:	HttpResponse res = httpclient.execute(httppost); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: execute, getConnectionManager, getCredentialsProvider
121:	DefaultHttpClient httpClient = new DefaultHttpClient(params); 
122:	CredentialsProvider credential = httpClient.getCredentialsProvider(); 
-
141:	HttpResponse httpResponse = httpClient.execute(httpPost); 
-
155:	ClientConnectionManager connectionManager = httpClient 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: execute
40:	response = hp.execute(hg); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: execute, getCredentialsProvider, getParams
83:	DefaultHttpClient httpClient = new DefaultHttpClient(); 
-
85:	httpClient.getParams().setParameter(CoreProtocolPNames.USER_AGENT, "XWik"); 
86:	httpClient.getParams().setIntParameter(CoreConnectionPNames.SO_TIMEOUT, 60000); 
87:	httpClient.getParams().setIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 10000); 
-
89:	httpClient.getCredentialsProvider().setCredentials(AuthScope.ANY, 
-
93:	HttpResponse response = httpClient.execute(httpget); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getCredentialsProvider, getParams, setCookieStore
112:	DefaultHttpClient client = new DefaultHttpClient(connManager, httpParams); 
-
114:	client.getParams().setParameter(AllClientPNames.MAX_REDIRECTS, 
-
116:	client.getParams().setParameter(AllClientPNames.ALLOW_CIRCULAR_REDIRECTS, 
-
118:	client.getParams().setParameter(AllClientPNames.SO_TIMEOUT, 
-
120:	client.getParams().setParameter(AllClientPNames.CONNECTION_TIMEOUT, 
-
125:	client.setCookieStore(null); 
-
129:	client.getParams().setParameter(AllClientPNames.COOKIE_POLICY, 
-
140:	client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); 
-
146:	client.getCredentialsProvider().setCredentials(authScope, credentials); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: execute
340:	HttpResponse response = mHttpClient.execute(httpPost); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setKeepAliveStrategy, setReuseStrategy
194:	DefaultHttpClient httpClient = new DefaultHttpClient(mConnectionManager,params); 
195:	httpClient.setKeepAliveStrategy(new ConnectionKeepAliveStrategy() { 
-
203:	httpClient.setReuseStrategy(new ConnectionReuseStrategy() { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getParams
67:	final DefaultHttpClient client = new DefaultHttpClient(manager, config); 
68:	client.getParams().setParameter("http.socket.timeout", 30 * 1000); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addRequestInterceptor, addResponseInterceptor, setHttpRequestRetryHandler
68:	httpClient = new DefaultHttpClient(connectionManager, params); 
69:	httpClient.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(3, false)); 
70:	httpClient.addRequestInterceptor(new HttpRequestInterceptor() 
-
80:	httpClient.addResponseInterceptor(new HttpResponseInterceptor() 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: clearRequestInterceptors, clearResponseInterceptors, getConnectionManager
213:	tmp.clearRequestInterceptors(); 
214:	tmp.clearResponseInterceptors(); 
215:	tmp.getConnectionManager().shutdown(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: execute, setCookieStore, setParams
70:	mHttpClient.setParams(params); 
-
73:	mHttpClient.setCookieStore(cookieStore); 
74:	HttpResponse response = mHttpClient.execute(httpPost); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addRequestInterceptor, addResponseInterceptor, getParams, setHttpRequestRetryHandler
90:	DefaultHttpClient client = new DefaultHttpClient(); 
91:	HttpParams params = client.getParams(); 
-
94:	client.setHttpRequestRetryHandler(new HttpRequestRetryHandler() { 
-
99:	client.addRequestInterceptor(context); 
100:	client.addResponseInterceptor(context); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addRequestInterceptor, addResponseInterceptor, setHttpRequestRetryHandler
136:	httpClient = new DefaultHttpClient(cm, httpParams); 
137:	httpClient.addRequestInterceptor(new HttpRequestInterceptor() { 
-
148:	httpClient.addResponseInterceptor(new HttpResponseInterceptor() { 
-
166:	httpClient.setHttpRequestRetryHandler(new RetryHandler(DEFAULT_MAX_RETRIES)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: execute
270:	HttpResponse response = client.execute(request); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: execute
218:	DefaultHttpClient httpClient = new DefaultHttpClient(); 
-
229:	httpClient.execute(httpPost); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: execute
171:	response = httpClient.execute(httpGet); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: execute
129:	DefaultHttpClient client = new DefaultHttpClient(); 
-
135:	HttpResponse res = client.execute(method); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: execute
313:	HttpResponse hResponse = sHttpClient.execute(new HttpDelete(aUrl)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: execute
287:	HttpResponse hResponse = sHttpClient.execute(new HttpDelete(aUrl)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: execute
34:	DefaultHttpClient httpClient = new DefaultHttpClient(); 
-
40:	response = httpClient.execute(httpget); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: execute
89:	return sClient.execute(head); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: execute
97:	DefaultHttpClient client = new DefaultHttpClient(); 
-
147:	HttpResponse response = client.execute(request); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: execute
28:	return http_client.execute(http_get); 
Full Snippet Info
6
CodeRank
Related Android AbstractHttpClient Questions & Answers:
See Code Examples for Android AbstractHttpClient Methods: