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

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

Android HttpParams examples from Open Source projects
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: getIntParameter
75:	/** 
-
78:	public BasicConnPool() { 
79:	super(new BasicConnFactory(SocketConfig.DEFAULT, ConnectionConfig.DEFAULT), 2, 20); 
-
81:	 
Full Snippet Info
6
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: getIntParameter
75:	Args.notNull(params, "HTTP params"); 
-
78:	this.connectTimeout = params.getIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 0); 
79:	this.sconfig = HttpParamConfig.getSocketConfig(params); 
-
81:	HttpParamConfig.getConnectionConfig(params)); 
Full Snippet Info
6
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: getIntParameter
96:	Args.notNull(params, "HTTP parameters"); 
97:	this.connectTimeout = params.getIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 0); 
-
107:	this(ioreactor, new BasicNIOConnFactory(params), params); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setParameter, x 1
207:	params.setParameter("Connection", "keep-alive"); 
208:	params.setParameter("Accept-Encoding", "gzip,deflate"); 
209:	params.setParameter("Accept-Charset", "GBK,utf-8;q=0.7,*;q=0.3"); 
210:	params.setParameter("Accept", 
-
212:	params.setParameter("Accept-Language", 
-
214:	params.setParameter( 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setBooleanParameter, setIntParameter, setParameter
73:	this.params.setParameter(HttpProtocolParams.PROTOCOL_VERSION, 
-
75:	this.params.setBooleanParameter(HttpProtocolParams.USE_EXPECT_CONTINUE, 
-
77:	this.params.setBooleanParameter(HttpConnectionParams.STALE_CONNECTION_CHECK, 
-
79:	this.params.setIntParameter(HttpConnectionParams.SOCKET_BUFFER_SIZE, 
-
81:	this.params.setIntParameter(HttpConnectionParams.SO_TIMEOUT, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getParameter
233:	.getParameter(ClientPNames.CONNECTION_MANAGER_FACTORY); 
-
235:	String className = (String) params.getParameter( 
-
252:	connManager = factory.newInstance(params, registry); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setParameter
76:	params.setParameter(ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 1); 
77:	params.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, new ConnPerRouteBean(1)); 
78:	params.setParameter(HttpProtocolParams.USE_EXPECT_CONTINUE, false); 
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: setLongParameter
89:	params.setLongParameter(HTTP_TIMEOUT, HTTP_TIMEOUT_MS); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setParameter
68:	params.setParameter(ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 1); 
69:	params.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, 
-
71:	params.setParameter(HttpProtocolParams.USE_EXPECT_CONTINUE, false); 
Full Snippet Info
5
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:
75:	super(handler, params); 
-
77:	Args.notNull(params, "HTTP parameters"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setParameter
68:	params.setParameter(ClientPNames.CONNECTION_MANAGER_FACTORY, 
-
91:	params.setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.RFC_2965); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
75:	super(handler, params); 
-
77:	Args.notNull(params, "HTTP parameters"); 
Full Snippet Info
5
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: getIntParameter
98:	this.maxLineLen = params.getIntParameter( 
-
100:	this.maxHeaderCount = params.getIntParameter( 
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: setIntParameter
71:	params.setIntParameter(CoreConnectionPNames.SO_TIMEOUT, 100); 
72:	params.setIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 100); 
73:	connFactory = new BasicConnFactory(params); 
Full Snippet Info
5
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: setParameter
65:	this.httpParams.setParameter(ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 1); 
66:	this.httpParams.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, 
-
68:	this.httpParams.setParameter(HttpProtocolParams.USE_EXPECT_CONTINUE, false); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setParameter
116:	params.setParameter(ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 1); 
117:	params.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, new ConnPerRouteBean(1)); 
118:	params.setParameter(HttpProtocolParams.USE_EXPECT_CONTINUE, false); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setParameter
67:	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
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: getBooleanParameter, getParameter
22:	.getParameter(CookieSpecPNames.DATE_PATTERNS); 
-
27:	boolean singleHeader = params.getBooleanParameter( 
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: 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: setBooleanParameter
59:	HttpParams params = new BasicHttpParams(); 
-
61:	params.setBooleanParameter("http.protocol.expect-continue", false); 
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: setIntParameter
52:	params.setIntParameter(ConnConnectionPNames.MAX_STATUS_LINE_GARBAGE, maxStatusLineGarbage); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getBooleanParameter, getParameter
18:	Collection<?> param = (Collection<?>) params.getParameter( 
-
24:	boolean singleHeader = params.getBooleanParameter( 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setLongParameter
71:	params.setLongParameter(HTTP_TIMEOUT, config.getHttpConnectTimeout()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setLongParameter
49:	params.setLongParameter(ConnManagerPNames.TIMEOUT, timeout); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getBooleanParameter, getParameter
17:	Collection<?> param = (Collection<?>) params.getParameter( 
-
23:	boolean singleHeader = params.getBooleanParameter( 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setParameter
66:	params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getParameter
50:	(String []) params.getParameter(CookieSpecPNames.DATE_PATTERNS)); 
Full Snippet Info
5
CodeRank
Related Android HttpParams Questions & Answers:
See Code Examples for Android HttpParams Methods: