Fixed typos javadocs and var names

This commit is contained in:
Arturo Bernal 2021-03-14 07:53:13 +01:00 committed by Oleg Kalnichevski
parent 24321d26b2
commit 118e7359a1
12 changed files with 18 additions and 18 deletions

View File

@ -162,7 +162,7 @@ class CachedHttpResponseGenerator {
/** /**
* Extract error information about the {@link HttpRequest} telling the 'caller' * 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 * @param errorCheck What type of error should I get
* @return The {@link HttpResponse} that is the error generated * @return The {@link HttpResponse} that is the error generated

View File

@ -252,7 +252,7 @@ class ResponseCachingPolicy {
final String[] uncacheableRequestDirectives = { HeaderConstants.CACHE_CONTROL_NO_STORE }; final String[] uncacheableRequestDirectives = { HeaderConstants.CACHE_CONTROL_NO_STORE };
if (hasCacheControlParameterFrom(request,uncacheableRequestDirectives)) { 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; return false;
} }

View File

@ -60,7 +60,7 @@ class WarningValue {
consumeWarnValue(); 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 * in the given header value, which is assumed to be a
* Warning header. Improperly formatted warning values will be * Warning header. Improperly formatted warning values will be
* skipped, in keeping with the philosophy of "ignore what you * skipped, in keeping with the philosophy of "ignore what you

View File

@ -48,7 +48,7 @@ public interface HttpRequestRetryStrategy {
/** /**
* Determines if a method should be retried after an I/O exception * 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 request the request failed due to an I/O exception
* @param exception the exception that occurred * @param exception the exception that occurred

View File

@ -55,7 +55,7 @@ public interface CookieAttributeHandler {
throws MalformedCookieException; 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 cookie {@link org.apache.hc.client5.http.cookie.Cookie} to validate
* @param origin the cookie source to validate against * @param origin the cookie source to validate against

View File

@ -35,7 +35,7 @@ import org.apache.hc.core5.annotation.ThreadingBehavior;
/** /**
* This cookie comparator ensures that cookies with longer paths take precedence over * 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 * creation time take precedence over cookies with later creation time
* *
* @since 4.4 * @since 4.4

View File

@ -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"; public static final String RELAXED = "relaxed";

View File

@ -66,9 +66,9 @@ public class DefaultUserTokenHandler implements UserTokenHandler {
Principal userPrincipal = null; Principal userPrincipal = null;
final AuthExchange targetAuthExchnage = clientContext.getAuthExchange(route.getTargetHost()); final AuthExchange targetAuthExchange = clientContext.getAuthExchange(route.getTargetHost());
if (targetAuthExchnage != null) { if (targetAuthExchange != null) {
userPrincipal = getAuthPrincipal(targetAuthExchnage); userPrincipal = getAuthPrincipal(targetAuthExchange);
if (userPrincipal == null && route.getProxyHost() != null) { if (userPrincipal == null && route.getProxyHost() != null) {
final AuthExchange proxyAuthExchange = clientContext.getAuthExchange(route.getProxyHost()); final AuthExchange proxyAuthExchange = clientContext.getAuthExchange(route.getProxyHost());
userPrincipal = getAuthPrincipal(proxyAuthExchange); userPrincipal = getAuthPrincipal(proxyAuthExchange);

View File

@ -668,7 +668,7 @@ public class HttpAsyncClientBuilder {
* One MUST explicitly close HttpClient with {@link CloseableHttpAsyncClient#close()} in order * One MUST explicitly close HttpClient with {@link CloseableHttpAsyncClient#close()} in order
* to stop and release the background thread. * to stop and release the background thread.
* <p> * <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. * use a shared connection manager.
* *
* @see #setConnectionManagerShared(boolean) * @see #setConnectionManagerShared(boolean)
@ -686,7 +686,7 @@ public class HttpAsyncClientBuilder {
* One MUST explicitly close HttpClient with {@link CloseableHttpAsyncClient#close()} * One MUST explicitly close HttpClient with {@link CloseableHttpAsyncClient#close()}
* in order to stop and release the background thread. * in order to stop and release the background thread.
* <p> * <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. * use a shared connection manager.
* *
* @see #setConnectionManagerShared(boolean) * @see #setConnectionManagerShared(boolean)

View File

@ -292,7 +292,7 @@ public class DigestScheme implements AuthScheme, Serializable {
try { try {
digester = createMessageDigest(digAlg); digester = createMessageDigest(digAlg);
} catch (final UnsupportedDigestAlgorithmException ex) { } catch (final UnsupportedDigestAlgorithmException ex) {
throw new AuthenticationException("Unsuppported digest algorithm: " + digAlg); throw new AuthenticationException("Unsupported digest algorithm: " + digAlg);
} }
if (nonce.equals(this.lastNonce)) { if (nonce.equals(this.lastNonce)) {

View File

@ -377,8 +377,8 @@ public final class HttpAuthenticator {
} }
private void updateCache(final HttpHost host, final AuthScheme authScheme, final HttpClientContext clientContext) { private void updateCache(final HttpHost host, final AuthScheme authScheme, final HttpClientContext clientContext) {
final boolean cachable = authScheme.getClass().getAnnotation(AuthStateCacheable.class) != null; final boolean cacheable = authScheme.getClass().getAnnotation(AuthStateCacheable.class) != null;
if (cachable) { if (cacheable) {
AuthCache authCache = clientContext.getAuthCache(); AuthCache authCache = clientContext.getAuthCache();
if (authCache == null) { if (authCache == null) {
authCache = new BasicAuthCache(); authCache = new BasicAuthCache();

View File

@ -37,14 +37,14 @@ public class UnsupportedDigestAlgorithmException extends RuntimeException {
private static final long serialVersionUID = 319558534317118022L; 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() { public UnsupportedDigestAlgorithmException() {
super(); super();
} }
/** /**
* Creates a new UnsupportedAuthAlgoritmException with the specified message. * Creates a new UnsupportedDigestAlgorithmException with the specified message.
* *
* @param message the exception detail 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 message the exception detail message
* @param cause the {@code Throwable} that caused this exception, or {@code null} * @param cause the {@code Throwable} that caused this exception, or {@code null}