hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1791746 - /httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/io/UriHttpRequestHandlerMapper.java
Date Tue, 18 Apr 2017 06:11:32 GMT
Author: ggregory
Date: Tue Apr 18 06:11:32 2017
New Revision: 1791746

URL: http://svn.apache.org/viewvc?rev=1791746&view=rev
Log:
[HTTPCORE-452] Add a UriRegexMatcher. Type as new LookupRegistry. (more to come)

Modified:
    httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/io/UriHttpRequestHandlerMapper.java

Modified: httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/io/UriHttpRequestHandlerMapper.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/io/UriHttpRequestHandlerMapper.java?rev=1791746&r1=1791745&r2=1791746&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/io/UriHttpRequestHandlerMapper.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/io/UriHttpRequestHandlerMapper.java
Tue Apr 18 06:11:32 2017
@@ -31,6 +31,7 @@ import org.apache.hc.core5.annotation.Co
 import org.apache.hc.core5.annotation.ThreadingBehavior;
 import org.apache.hc.core5.http.HttpRequest;
 import org.apache.hc.core5.http.protocol.HttpContext;
+import org.apache.hc.core5.http.protocol.LookupRegistry;
 import org.apache.hc.core5.http.protocol.UriPatternMatcher;
 import org.apache.hc.core5.util.Args;
 
@@ -54,9 +55,9 @@ import org.apache.hc.core5.util.Args;
 @Contract(threading = ThreadingBehavior.SAFE)
 public class UriHttpRequestHandlerMapper implements HttpRequestHandlerMapper {
 
-    private final UriPatternMatcher<HttpRequestHandler> matcher;
+    private final LookupRegistry<HttpRequestHandler> matcher;
 
-    protected UriHttpRequestHandlerMapper(final UriPatternMatcher<HttpRequestHandler>
matcher) {
+    protected UriHttpRequestHandlerMapper(final LookupRegistry<HttpRequestHandler>
matcher) {
         super();
         this.matcher = Args.notNull(matcher, "Pattern matcher");
     }



Mime
View raw message