Document missing case labels
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621220 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2865cd0d0d
commit
865260ba79
|
@ -58,7 +58,7 @@ abstract class RequestAuthenticationBase implements HttpRequestInterceptor {
|
|||
final HttpContext context) {
|
||||
AuthScheme authScheme = authState.getAuthScheme();
|
||||
Credentials creds = authState.getCredentials();
|
||||
switch (authState.getState()) {
|
||||
switch (authState.getState()) { // TODO add UNCHALLENGED and HANDSHAKE cases
|
||||
case FAILURE:
|
||||
return;
|
||||
case SUCCESS:
|
||||
|
|
|
@ -91,7 +91,7 @@ public class ResponseAuthCache implements HttpResponseInterceptor {
|
|||
authCache = new BasicAuthCache();
|
||||
context.setAttribute(ClientContext.AUTH_CACHE, authCache);
|
||||
}
|
||||
switch (targetState.getState()) {
|
||||
switch (targetState.getState()) { // TODO add SUCCESS, UNCHALLENGED and HANDSHAKE cases
|
||||
case CHALLENGED:
|
||||
cache(authCache, target, targetState.getAuthScheme());
|
||||
break;
|
||||
|
@ -112,7 +112,7 @@ public class ResponseAuthCache implements HttpResponseInterceptor {
|
|||
authCache = new BasicAuthCache();
|
||||
context.setAttribute(ClientContext.AUTH_CACHE, authCache);
|
||||
}
|
||||
switch (proxyState.getState()) {
|
||||
switch (proxyState.getState()) { // TODO add SUCCESS, UNCHALLENGED and HANDSHAKE cases
|
||||
case CHALLENGED:
|
||||
cache(authCache, proxy, proxyState.getAuthScheme());
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue