Fixed typos javadocs and var names
This commit is contained in:
parent
24321d26b2
commit
118e7359a1
|
@ -162,7 +162,7 @@ class CachedHttpResponseGenerator {
|
|||
|
||||
/**
|
||||
* Extract error information about the {@link HttpRequest} telling the 'caller'
|
||||
* that a problem occured.
|
||||
* that a problem occurred.
|
||||
*
|
||||
* @param errorCheck What type of error should I get
|
||||
* @return The {@link HttpResponse} that is the error generated
|
||||
|
|
|
@ -252,7 +252,7 @@ class ResponseCachingPolicy {
|
|||
|
||||
final String[] uncacheableRequestDirectives = { HeaderConstants.CACHE_CONTROL_NO_STORE };
|
||||
if (hasCacheControlParameterFrom(request,uncacheableRequestDirectives)) {
|
||||
LOG.debug("Response is explcitily non-cacheable per cache control directive");
|
||||
LOG.debug("Response is explicitly non-cacheable per cache control directive");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ class WarningValue {
|
|||
consumeWarnValue();
|
||||
}
|
||||
|
||||
/** Returns an array of the parseable warning values contained
|
||||
/** Returns an array of the parsable warning values contained
|
||||
* in the given header value, which is assumed to be a
|
||||
* Warning header. Improperly formatted warning values will be
|
||||
* skipped, in keeping with the philosophy of "ignore what you
|
||||
|
|
|
@ -48,7 +48,7 @@ public interface HttpRequestRetryStrategy {
|
|||
|
||||
/**
|
||||
* Determines if a method should be retried after an I/O exception
|
||||
* occured during execution.
|
||||
* occurred during execution.
|
||||
*
|
||||
* @param request the request failed due to an I/O exception
|
||||
* @param exception the exception that occurred
|
||||
|
|
|
@ -55,7 +55,7 @@ public interface CookieAttributeHandler {
|
|||
throws MalformedCookieException;
|
||||
|
||||
/**
|
||||
* Peforms cookie validation for the given attribute value.
|
||||
* Performs cookie validation for the given attribute value.
|
||||
*
|
||||
* @param cookie {@link org.apache.hc.client5.http.cookie.Cookie} to validate
|
||||
* @param origin the cookie source to validate against
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.hc.core5.annotation.ThreadingBehavior;
|
|||
|
||||
/**
|
||||
* This cookie comparator ensures that cookies with longer paths take precedence over
|
||||
* cookies with shorter path. Among cookies with equal path length cookies with ealier
|
||||
* cookies with shorter path. Among cookies with equal path length cookies with earlier
|
||||
* creation time take precedence over cookies with later creation time
|
||||
*
|
||||
* @since 4.4
|
||||
|
|
|
@ -39,7 +39,7 @@ public final class StandardCookieSpec {
|
|||
}
|
||||
|
||||
/**
|
||||
* The RFC 6265 compliant policy (interoprability profile).
|
||||
* The RFC 6265 compliant policy (interoperability profile).
|
||||
*/
|
||||
public static final String RELAXED = "relaxed";
|
||||
|
||||
|
|
|
@ -66,9 +66,9 @@ public class DefaultUserTokenHandler implements UserTokenHandler {
|
|||
|
||||
Principal userPrincipal = null;
|
||||
|
||||
final AuthExchange targetAuthExchnage = clientContext.getAuthExchange(route.getTargetHost());
|
||||
if (targetAuthExchnage != null) {
|
||||
userPrincipal = getAuthPrincipal(targetAuthExchnage);
|
||||
final AuthExchange targetAuthExchange = clientContext.getAuthExchange(route.getTargetHost());
|
||||
if (targetAuthExchange != null) {
|
||||
userPrincipal = getAuthPrincipal(targetAuthExchange);
|
||||
if (userPrincipal == null && route.getProxyHost() != null) {
|
||||
final AuthExchange proxyAuthExchange = clientContext.getAuthExchange(route.getProxyHost());
|
||||
userPrincipal = getAuthPrincipal(proxyAuthExchange);
|
||||
|
|
|
@ -668,7 +668,7 @@ public class HttpAsyncClientBuilder {
|
|||
* One MUST explicitly close HttpClient with {@link CloseableHttpAsyncClient#close()} in order
|
||||
* to stop and release the background thread.
|
||||
* <p>
|
||||
* Please note this method has no effect if the instance of HttpClient is configuted to
|
||||
* Please note this method has no effect if the instance of HttpClient is configured to
|
||||
* use a shared connection manager.
|
||||
*
|
||||
* @see #setConnectionManagerShared(boolean)
|
||||
|
@ -686,7 +686,7 @@ public class HttpAsyncClientBuilder {
|
|||
* One MUST explicitly close HttpClient with {@link CloseableHttpAsyncClient#close()}
|
||||
* in order to stop and release the background thread.
|
||||
* <p>
|
||||
* Please note this method has no effect if the instance of HttpClient is configuted to
|
||||
* Please note this method has no effect if the instance of HttpClient is configured to
|
||||
* use a shared connection manager.
|
||||
*
|
||||
* @see #setConnectionManagerShared(boolean)
|
||||
|
|
|
@ -292,7 +292,7 @@ public class DigestScheme implements AuthScheme, Serializable {
|
|||
try {
|
||||
digester = createMessageDigest(digAlg);
|
||||
} catch (final UnsupportedDigestAlgorithmException ex) {
|
||||
throw new AuthenticationException("Unsuppported digest algorithm: " + digAlg);
|
||||
throw new AuthenticationException("Unsupported digest algorithm: " + digAlg);
|
||||
}
|
||||
|
||||
if (nonce.equals(this.lastNonce)) {
|
||||
|
|
|
@ -377,8 +377,8 @@ public final class HttpAuthenticator {
|
|||
}
|
||||
|
||||
private void updateCache(final HttpHost host, final AuthScheme authScheme, final HttpClientContext clientContext) {
|
||||
final boolean cachable = authScheme.getClass().getAnnotation(AuthStateCacheable.class) != null;
|
||||
if (cachable) {
|
||||
final boolean cacheable = authScheme.getClass().getAnnotation(AuthStateCacheable.class) != null;
|
||||
if (cacheable) {
|
||||
AuthCache authCache = clientContext.getAuthCache();
|
||||
if (authCache == null) {
|
||||
authCache = new BasicAuthCache();
|
||||
|
|
|
@ -37,14 +37,14 @@ public class UnsupportedDigestAlgorithmException extends RuntimeException {
|
|||
private static final long serialVersionUID = 319558534317118022L;
|
||||
|
||||
/**
|
||||
* Creates a new UnsupportedAuthAlgoritmException with a {@code null} detail message.
|
||||
* Creates a new UnsupportedDigestAlgorithmException with a {@code null} detail message.
|
||||
*/
|
||||
public UnsupportedDigestAlgorithmException() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new UnsupportedAuthAlgoritmException with the specified message.
|
||||
* Creates a new UnsupportedDigestAlgorithmException with the specified message.
|
||||
*
|
||||
* @param message the exception detail message
|
||||
*/
|
||||
|
@ -53,7 +53,7 @@ public class UnsupportedDigestAlgorithmException extends RuntimeException {
|
|||
}
|
||||
|
||||
/**
|
||||
* Creates a new UnsupportedAuthAlgoritmException with the specified detail message and cause.
|
||||
* Creates a new UnsupportedDigestAlgorithmException with the specified detail message and cause.
|
||||
*
|
||||
* @param message the exception detail message
|
||||
* @param cause the {@code Throwable} that caused this exception, or {@code null}
|
||||
|
|
Loading…
Reference in New Issue