-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using AuthCache for Apache HttpClient to do pre-emptive authentication #85
Conversation
19fb07b
to
f0df1f9
Compare
private HttpClientContext getHttpClientContext(HttpGet get) { | ||
// Setup preemptive Authentication | ||
// Create AuthCache instance | ||
AuthCache authCache = new BasicAuthCache(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sagarsane Minor: semi-colons can be removed from end of lines. +1 otherwise
f0df1f9
to
529d6f3
Compare
@sikarwarvimal @kyleabaker @jdigger @jbornemann this is ready for review and testing. This will need a |
* Gets a new HttpClientContext for the given HttpRequest. The ClientContext sets up preemptive | ||
* authentication using BasicAuthCache | ||
* @param get the HttpGet request | ||
* @return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty @return
. either populate or remove
Besides some stylistic comments, +1 CR. Have not tested. |
529d6f3
to
8e8e4bf
Compare
Updated with CR comments. |
8e8e4bf
to
fd3d7fe
Compare
+1 testing |
fd3d7fe
to
008b459
Compare
Need to clean the code up a bit
For #84