Best code examples for Android HttpContext class (org.apache.http.protocol.HttpContext)

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

Android HttpContext examples from Open Source projects
This code example shows how to use the following methods: setAttribute
199:	httpContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getAttribute
36:	Object authAttribute = context.getAttribute("authenticated"); 
-
39:	getResponse(request, response, context); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
303:	HttpContext credContext = new BasicHttpContext(); 
304:	credContext.setAttribute(ClientContext.CREDS_PROVIDER, cp); 
-
307:	HttpResponse response = httpClient.execute(host, job, credContext); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
81:	HttpContext context = new BasicHttpContext(); 
82:	context.setAttribute(ClientContext.COOKIE_ORIGIN, this.cookieOrigin); 
83:	context.setAttribute(ClientContext.COOKIE_SPEC, this.cookieSpec); 
84:	context.setAttribute(ClientContext.COOKIE_STORE, this.cookieStore); 
-
87:	interceptor.process(response, context); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
65:	HttpContext context = new BasicHttpContext(); 
-
75:	context.setAttribute(ClientContext.TARGET_AUTH_STATE, authstate); 
-
78:	interceptor.process(request, context); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute, setAttribute
54:	Queue<Job> queue = (Queue<Job>) context.getAttribute("queue"); 
-
60:	context.setAttribute("job", testjob); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
73:	HttpContext context = new BasicHttpContext(); 
-
81:	context.setAttribute(ExecutionContext.HTTP_CONNECTION, conn); 
-
84:	interceptor.process(request, context); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute, setAttribute
301:	HttpContext context = new BasicHttpContext(); 
302:	context.setAttribute(ExecutionContext.HTTP_TARGET_HOST, this.target); 
303:	context.setAttribute(ExecutionContext.HTTP_CONNECTION, conn); 
304:	context.setAttribute(ClientContext.COOKIE_STORE, this.cookieStore); 
305:	context.setAttribute(ClientContext.COOKIESPEC_REGISTRY, this.cookieSpecRegistry); 
-
308:	interceptor.process(request, context); 
-
310:	CookieSpec cookieSpec = (CookieSpec) context.getAttribute( 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute
212:	final HttpContext context = new BasicHttpContext(); 
-
214:	ResponseHandler<? extends T> wrappedHandler = new ResponseHandler<T>() { 
-
238:	if (context.getAttribute(ATTR_SKIP_PROCESSING) != null 
239:	&& (Boolean) context.getAttribute(ATTR_SKIP_PROCESSING)) { 
-
241:	.getAttribute(ATTR_OVERRIDDEN_RESPONSE); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: removeAttribute
83:	ctx.removeAttribute(ExecutionContext.HTTP_REQUEST); 
84:	ctx.removeAttribute(ExecutionContext.HTTP_RESPONSE); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute
108:	CookieStore cookieStore = (CookieStore) httpContext.getAttribute(ClientContext.COOKIE_STORE); 
-
116:	HttpResponse response = client.execute(post, httpContext); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: removeAttribute
85:	ctx.removeAttribute(ExecutionContext.HTTP_REQUEST); 
86:	ctx.removeAttribute(ExecutionContext.HTTP_RESPONSE); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute
106:	HttpRequestAsync sendReqAsync = new HttpRequestAsync(mMainActivity, this, mHttpContext, mErrorLogHandler); 
-
216:	HttpUriRequest currentReq = (HttpUriRequest) mHttpContext.getAttribute( 
-
218:	HttpHost currentHost = (HttpHost)  mHttpContext.getAttribute( 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
147:	HttpContext httpContext = new BasicHttpContext(); 
148:	httpContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore); 
-
150:	response = httpClient.execute(httpGet, httpContext); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
196:	httpContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
229:	HttpContext context = new BasicHttpContext(); 
-
231:	context.setAttribute(ClientContext.COOKIE_STORE, cookieStore); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
172:	HttpContext context = new BasicHttpContext(); 
-
181:	context.setAttribute(ClientContext.AUTHSCHEME_REGISTRY, authSchemeRegistry); 
-
183:	Queue<AuthOption> options = authStrategy.select(challenges, authhost, response, context); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute
74:	Boolean b = (Boolean) context.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
91:	HttpUriRequest currentReq = (HttpUriRequest) context.getAttribute(ExecutionContext.HTTP_REQUEST); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute
72:	.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
91:	.getAttribute(ExecutionContext.HTTP_REQUEST); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getAttribute
73:	Boolean b = (Boolean) context.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
92:	HttpUriRequest currentReq = (HttpUriRequest) context.getAttribute( ExecutionContext.HTTP_REQUEST ); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setAttribute
73:	HttpContext localContext = new BasicHttpContext(); 
74:	localContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
118:	HttpContext context = new BasicHttpContext();; 
-
122:	context.setAttribute(ClientContext.COOKIE_STORE, cookies); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
108:	HttpContext httpContext = new BasicHttpContext(); 
-
111:	httpContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
87:	HttpContext context = new BasicHttpContext(); 
88:	context.setAttribute( ClientContext.COOKIE_STORE, cookieStore ); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute
71:	Boolean b = (Boolean) context.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
88:	HttpUriRequest currentReq = (HttpUriRequest) context.getAttribute(ExecutionContext.HTTP_REQUEST); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setAttribute
62:	final HttpContext localContext = new BasicHttpContext(); 
-
64:	localContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
62:	HttpContext httpContext = new BasicHttpContext(); 
-
65:	httpContext.setAttribute(ClientContext.COOKIE_STORE, cookies); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
73:	HttpContext localContext = new BasicHttpContext(); 
74:	localContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
191:	HttpContext localContext = new BasicHttpContext(); 
-
193:	localContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
175:	HttpContext context = new BasicHttpContext(); 
-
177:	context.setAttribute(ClientContext.COOKIE_STORE, cookieStore); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
34:	HttpContext localContext = new BasicHttpContext(); 
35:	localContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute
70:	Boolean b = (Boolean) context.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
87:	HttpUriRequest currentReq = (HttpUriRequest) context.getAttribute(ExecutionContext.HTTP_REQUEST); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getAttribute
70:	Boolean b = (Boolean) context.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
87:	HttpUriRequest currentReq = (HttpUriRequest) context.getAttribute(ExecutionContext.HTTP_REQUEST); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getAttribute
70:	Boolean b = (Boolean) context.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
87:	HttpUriRequest currentReq = (HttpUriRequest) context.getAttribute(ExecutionContext.HTTP_REQUEST); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getAttribute
70:	Boolean b = (Boolean) context.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
89:	HttpUriRequest currentReq = (HttpUriRequest) context.getAttribute( ExecutionContext.HTTP_REQUEST ); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getAttribute
74:	Boolean b = (Boolean) context.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
91:	HttpUriRequest currentReq = (HttpUriRequest) context.getAttribute(ExecutionContext.HTTP_REQUEST); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute
70:	Boolean b = (Boolean) context.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
89:	HttpUriRequest currentReq = (HttpUriRequest) context.getAttribute( ExecutionContext.HTTP_REQUEST ); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getAttribute
70:	Boolean b = (Boolean) context.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
87:	HttpUriRequest currentReq = (HttpUriRequest) context.getAttribute(ExecutionContext.HTTP_REQUEST); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute
50:	.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
69:	.getAttribute(ExecutionContext.HTTP_REQUEST); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
197:	httpContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute
62:	Boolean b = (Boolean) context.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
78:	HttpUriRequest currentReq = (HttpUriRequest) context.getAttribute( ExecutionContext.HTTP_REQUEST ); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute
49:	.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
68:	.getAttribute(ExecutionContext.HTTP_REQUEST); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute
50:	Boolean b = (Boolean) context.getAttribute(ExecutionContext.HTTP_REQ_SENT); 
-
68:	HttpUriRequest currentReq = (HttpUriRequest) context.getAttribute( ExecutionContext.HTTP_REQUEST ); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAttribute
34:	httpContext.setAttribute("request line", httpRequest.getRequestLine()); 
35:	httpContext.setAttribute("http timer context", httpRequestTimer.time()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute
47:	if (!getExpectedCredential().equals(context.getAttribute("proxy-creds"))) { 
-
52:	super.handle(request, response, context); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAttribute, setAttribute
54:	Queue<Job> queue = (Queue<Job>) context.getAttribute("queue"); 
-
60:	context.setAttribute("job", testjob); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setAttribute
111:	localContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore); 
-
115:	localContext.setAttribute(ClientContext.CREDS_PROVIDER, credsProvider); 
Full Snippet Info
5
CodeRank
Related Android HttpContext Questions & Answers:
See Code Examples for Android HttpContext Methods: