hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1080419 - /httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachedResponseSuitabilityChecker.java
Date Fri, 11 Mar 2011 01:32:47 GMT
Author: jonm
Date: Fri Mar 11 01:32:46 2011
New Revision: 1080419

URL: http://svn.apache.org/viewvc?rev=1080419&view=rev
Log:
+ Fix minor typos in private function names.

Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachedResponseSuitabilityChecker.java

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachedResponseSuitabilityChecker.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachedResponseSuitabilityChecker.java?rev=1080419&r1=1080418&r2=1080419&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachedResponseSuitabilityChecker.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachedResponseSuitabilityChecker.java
Fri Mar 11 01:32:46 2011
@@ -217,7 +217,7 @@ class CachedResponseSuitabilityChecker {
      * @return {@code true} if the request is supported
      */
     public boolean isConditional(HttpRequest request) {
-        return hasSupportedEtagVadlidator(request) || hasSupportedLastModifiedValidator(request);
+        return hasSupportedEtagValidator(request) || hasSupportedLastModifiedValidator(request);
     }
 
     /**
@@ -228,10 +228,10 @@ class CachedResponseSuitabilityChecker {
      * @return {@code true} if the request matches all conditionals
      */
     public boolean allConditionalsMatch(HttpRequest request, HttpCacheEntry entry, Date now)
{
-        boolean hasEtagValidator = hasSupportedEtagVadlidator(request);
+        boolean hasEtagValidator = hasSupportedEtagValidator(request);
         boolean hasLastModifiedValidator = hasSupportedLastModifiedValidator(request);
 
-        boolean etagValidatorMatches = (hasEtagValidator) ? etagValidtorMatches(request,
entry) : false;
+        boolean etagValidatorMatches = (hasEtagValidator) ? etagValidatorMatches(request,
entry) : false;
         boolean lastModifiedValidatorMatches = (hasLastModifiedValidator) ? lastModifiedValidatorMatches(request,
entry, now) : false;
 
         if ((hasEtagValidator && hasLastModifiedValidator)
@@ -251,7 +251,7 @@ class CachedResponseSuitabilityChecker {
                 || hasValidDateField(request, "If-Unmodified-Since"));
     }
 
-    private boolean hasSupportedEtagVadlidator(HttpRequest request) {
+    private boolean hasSupportedEtagValidator(HttpRequest request) {
         return request.containsHeader(HeaderConstants.IF_NONE_MATCH);
     }
 
@@ -265,7 +265,7 @@ class CachedResponseSuitabilityChecker {
      * @param entry
      * @return
      */
-    private boolean etagValidtorMatches(HttpRequest request, HttpCacheEntry entry) {
+    private boolean etagValidatorMatches(HttpRequest request, HttpCacheEntry entry) {
         Header etagHeader = entry.getFirstHeader(HeaderConstants.ETAG);
         String etag = (etagHeader != null) ? etagHeader.getValue() : null;
         Header[] ifNoneMatch = request.getHeaders(HeaderConstants.IF_NONE_MATCH);



Mime
View raw message