Skip to content
Permalink
Browse files
Fixed typos javadocs and var names
  • Loading branch information
arturobernalg authored and ok2c committed Mar 14, 2021
1 parent 24321d2 commit 118e7359a15cc8664a0dc0a9503f7055404df74f
Showing 12 changed files with 18 additions and 18 deletions.
@@ -162,7 +162,7 @@ private boolean responseShouldContainEntity(final HttpRequest request, final Htt

/**
* 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 @@ public boolean isResponseCacheable(final HttpRequest request, final HttpResponse

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 @@ void parse(SetCookie cookie, String value)
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 @@

/**
* 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 @@ private 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 Object getUserToken(final HttpRoute route, final HttpContext context) {

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 final HttpAsyncClientBuilder disableAuthCaching() {
* 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 final HttpAsyncClientBuilder evictExpiredConnections() {
* 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 @@ private String createDigestResponse(final HttpRequest request) throws Authentica
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 void addAuthResponse(
}

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 UnsupportedDigestAlgorithmException(final String message) {
}

/**
* 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}

0 comments on commit 118e735

Please sign in to comment.