Best code examples for Android BasicHttpParams class (org.apache.http.params.BasicHttpParams)

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

Android BasicHttpParams examples from Open Source projects
This code example shows how to use the following methods:
81:	HttpParams httpParams = new BasicHttpParams(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
73:	HttpParams params = new BasicHttpParams(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setIntParameter
83:	HttpParams params = new BasicHttpParams(); 
-
87:	params.setIntParameter(ConnConnectionPNames.MAX_STATUS_LINE_GARBAGE, 0); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setBooleanParameter, setIntParameter
130:	BasicHttpParams params = new BasicHttpParams(); 
-
133:	params.setBooleanParameter(CoreProtocolPNames.USE_EXPECT_CONTINUE,true); 
-
136:	params.setBooleanParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK,true); 
137:	params.setBooleanParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS,true); 
138:	params.setIntParameter(CoreConnectionPNames.SO_TIMEOUT,socketTimeout); 
139:	params.setIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT,connectionTimeout); 
140:	params.setBooleanParameter(ClientPNames.HANDLE_REDIRECTS,true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setBooleanParameter, setIntParameter
138:	BasicHttpParams params = new BasicHttpParams(); 
-
141:	params.setBooleanParameter(CoreProtocolPNames.USE_EXPECT_CONTINUE,true); 
-
144:	params.setBooleanParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK,true); 
145:	params.setBooleanParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS,true); 
146:	params.setIntParameter(CoreConnectionPNames.SO_TIMEOUT,socketTimeout); 
147:	params.setIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT,connectionTimeout); 
148:	params.setBooleanParameter(ClientPNames.HANDLE_REDIRECTS,true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setParameter
278:	HttpParams params = new BasicHttpParams(); 
-
290:	params.setParameter(ClientPNames.DEFAULT_HOST, new HttpHost(host, 
-
293:	params.setParameter(ConnRoutePNames.DEFAULT_PROXY, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDoubleParameter, setParameter
47:	BasicHttpParams params = new BasicHttpParams(); 
48:	params.setDoubleParameter("longitude", longitude); 
49:	params.setDoubleParameter("latitude", latitude); 
50:	params.setDoubleParameter("speed", speed); 
51:	params.setParameter("sorttype", sorttype); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
46:	HttpParams httpParams = new BasicHttpParams(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
448:	BasicHttpParams httpParameters = new BasicHttpParams(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setIntParameter
386:	HttpParams params = new BasicHttpParams(); 
387:	SessionInputBuffer inbuf = new SessionInputBufferImpl(1024, 128, params); 
-
390:	params.setIntParameter(CoreConnectionPNames.MAX_HEADER_COUNT, 2); 
391:	NHttpMessageParser<HttpRequest> requestParser = new DefaultHttpRequestParser(inbuf, null, requestFactory, params); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setParameter
12:	BasicHttpParams params = new BasicHttpParams(); 
13:	params.setParameter("tournament[tournament_type]", "single elimination"); 
14:	params.setParameter("tournament[url]", tournamentUrl); 
15:	params.setParameter("tournament[name]", name); 
16:	params.setParameter("api_key", "mvck4czxeg7ucbawoy3jcagjfd5ia4be6wjfifgk"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
165:	BasicHttpParams params = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
40:	final HttpParams params = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
231:	HttpParams params = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setParameter
28:	HttpParams httpParams = new BasicHttpParams(); 
-
39:	httpParams.setParameter(HttpProtocolParams.USER_AGENT, userAgentString); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
74:	private HttpParams httpParameters = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setIntParameter
362:	HttpParams params = new BasicHttpParams(); 
-
366:	params.setIntParameter(CoreConnectionPNames.MAX_LINE_LENGTH, 0); 
367:	SessionInputBufferMockup inbuffer1 = new SessionInputBufferMockup(tmp, 5, params); 
-
373:	params.setIntParameter(CoreConnectionPNames.MAX_LINE_LENGTH, 15); 
374:	SessionInputBufferMockup inbuffer2 = new SessionInputBufferMockup(tmp, 5, params); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
466:	HttpParams httpPar = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
434:	HttpParams httpPar = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
88:	BasicHttpParams params = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
65:	HttpParams params = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
65:	HttpParams params = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setParameter
97:	HttpParams params = new BasicHttpParams(); 
98:	params.setParameter(ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 30); 
99:	params.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, new ConnPerRouteBean(30)); 
100:	params.setParameter(HttpProtocolParams.USE_EXPECT_CONTINUE, false); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
180:	HttpParams httpParameters = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
113:	return new DefaultHttpClient(new BasicHttpParams()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
54:	HttpParams params = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setParameter
28:	HttpParams params = new BasicHttpParams(); 
29:	params.setParameter("http.connection-manager.timeout", (long)20000); 
30:	params.setParameter("http.socket.timeout",(int)20000); 
31:	params.setParameter("http.connection.timeout",(int)20000); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
219:	final HttpParams params = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
219:	final HttpParams params = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
53:	HttpParams params = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
33:	HttpParams params = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
53:	HttpParams params = new BasicHttpParams(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setIntParameter, setParameter
100:	HttpParams params = new BasicHttpParams(); 
101:	params.setIntParameter(AllClientPNames.CONNECTION_TIMEOUT, timeoutConnection); 
102:	params.setIntParameter(AllClientPNames.SO_TIMEOUT, timeoutSocket); 
103:	params.setParameter(AllClientPNames.USER_AGENT, USER_AGENT); 
104:	params.setIntParameter(AllClientPNames.SOCKET_BUFFER_SIZE, 8192); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setIntParameter
68:	BasicHttpParams params = new BasicHttpParams(); 
69:	params.setIntParameter(CoreConnectionPNames.SOCKET_BUFFER_SIZE, 256 * 1024); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setParameter
28:	HttpParams params = new BasicHttpParams(); 
29:	params.setParameter("http.connection-manager.timeout", (long)20000); 
30:	params.setParameter("http.socket.timeout",(int)20000); 
31:	params.setParameter("http.connection.timeout",(int)20000); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setParameter
49:	HttpParams params = new BasicHttpParams(); 
50:	params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); 
51:	params.setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 5000); // 3000ms 
52:	params.setParameter(CoreConnectionPNames.SO_TIMEOUT, 60000);// 数据传输时间60s 
53:	params.setParameter(CoreProtocolPNames.HTTP_CONTENT_CHARSET,"UTF-8"); 
54:	params.setParameter(CoreProtocolPNames.HTTP_ELEMENT_CHARSET,"UTF-8"); 
55:	params.setParameter(CoreProtocolPNames.USE_EXPECT_CONTINUE,Boolean.FALSE); 
56:	params.setParameter(CoreProtocolPNames.WAIT_FOR_CONTINUE,3000); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setParameter
317:	HttpParams httpParams = new BasicHttpParams(); 
318:	httpParams.setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, CONNECTION_TIMEOUT); 
319:	httpParams.setParameter(CoreConnectionPNames.SO_TIMEOUT, SOCKET_TIMEOUT); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setParameter
80:	HttpParams params = new BasicHttpParams(); 
81:	params.setParameter(ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 30); 
82:	params.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, 
-
84:	params.setParameter(HttpProtocolParams.USE_EXPECT_CONTINUE, false); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setIntParameter
47:	params = new BasicHttpParams(); 
48:	params.setIntParameter(HttpConnectionParams.SO_TIMEOUT, 2222) 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setParameter
71:	HttpParams params = new BasicHttpParams(); 
72:	params.setParameter("uid", "Yeah"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setParameter
200:	HttpParams params = new BasicHttpParams(); 
-
203:	params.setParameter(CoreProtocolPNames.HTTP_CONTENT_CHARSET, charset); 
-
206:	params.setParameter(ClientPNames.COOKIE_POLICY, cookiePolicy); 
-
208:	params.setParameter(ConnRoutePNames.LOCAL_ADDRESS, localAddress); 
-
217:	params.setParameter(CoreProtocolPNames.USER_AGENT, userAgent); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setParameter
49:	HttpParams params = new BasicHttpParams(); 
50:	params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setParameter
50:	HttpParams params = new BasicHttpParams(); 
-
55:	params.setParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setParameter
194:	HttpParams params = new BasicHttpParams(); 
195:	params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setParameter
258:	HttpParams params = new BasicHttpParams(); 
-
275:	params.setParameter(ConnRoutePNames.DEFAULT_PROXY, new HttpHost(proxyHost, port, ssl ? "https" : "http")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setParameter
146:	HttpParams params = new BasicHttpParams(); 
147:	params.setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setBooleanParameter
59:	HttpParams params = new BasicHttpParams(); 
-
61:	params.setBooleanParameter("http.protocol.expect-continue", false); 
Full Snippet Info
5
CodeRank
Related Android BasicHttpParams Questions & Answers:
See Code Examples for Android BasicHttpParams Methods: