incubator-wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From el...@apache.org
Subject svn commit: r789281 - /incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/registry/ResourceRegistry.java
Date Mon, 29 Jun 2009 10:34:53 GMT
Author: elman
Date: Mon Jun 29 10:34:53 2009
New Revision: 789281

URL: http://svn.apache.org/viewvc?rev=789281&view=rev
Log:
See https://issues.apache.org/jira/browse/WINK-17

Modified:
    incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/registry/ResourceRegistry.java

Modified: incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/registry/ResourceRegistry.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/registry/ResourceRegistry.java?rev=789281&r1=789280&r2=789281&view=diff
==============================================================================
--- incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/registry/ResourceRegistry.java
(original)
+++ incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/registry/ResourceRegistry.java
Mon Jun 29 10:34:53 2009
@@ -199,7 +199,7 @@
         if (resource.isExactMatch()) {
             resourceMethods = resource.getRecord().getMetadata().getResourceMethods();
         } else {
-            String uri = resource.getMatcher().getTail(false);
+            String uri = UriTemplateProcessor.normalizeUri(resource.getMatcher().getTail(false));
             List<SubResourceInstance> matchingMethods = resource.getRecord().getMatchingSubResourceMethods(uri);
             resourceMethods = new LinkedList<MethodMetadata>();
             for (SubResourceInstance subResource : matchingMethods) {
@@ -357,7 +357,7 @@
      *            the context of the current request
      * @return 
      */
-    public void filterDispatchMethods(List<? extends MethodRecord> methodRecords, RuntimeContext
context)
+    private void filterDispatchMethods(List<? extends MethodRecord> methodRecords,
RuntimeContext context)
             throws WebApplicationException {
         // filter by http method
         ListIterator<? extends MethodRecord> iterator = methodRecords.listIterator();



Mime
View raw message