abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r441676 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java
Date Fri, 08 Sep 2006 22:27:07 GMT
Author: jmsnell
Date: Fri Sep  8 15:27:05 2006
New Revision: 441676

URL: http://svn.apache.org/viewvc?view=rev&rev=441676
Log:
Fixing javadoc example

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java?view=diff&rev=441676&r1=441675&r2=441676
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java
Fri Sep  8 15:27:05 2006
@@ -37,12 +37,12 @@
  * 
  * <pre>
  *  RegexTargetResolver tr = new RegexTargetResolver();
- *  tr.addPattern(ResourceType.INTROSPECTION, "/atom");
- *  tr.addPattern(ResourceType.COLLECTION, "/atom/([^/#?]+)");
- *  tr.addPattern(ResourceType.ENTRY, "/atom/([^/#?]+)/([^/#?]+)");
- *  tr.addPattern(ResourceType.ENTRY_EDIT, "/atom/([^/#?]+)/([^/#?]+)\\?edit");
- *  tr.addPattern(ResourceType.MEDIA,"/atom/([^/#?]+)/([^/#?]+)\\?media");
- *  tr.addPattern(ResourceType.MEDIA_EDIT,"/atom/([^/#?]+)/([^/#?]+)\\?edit-media");
+ *  tr.setPattern(ResourceType.INTROSPECTION, "/atom");
+ *  tr.setPattern(ResourceType.COLLECTION, "/atom/([^/#?]+)");
+ *  tr.setPattern(ResourceType.ENTRY, "/atom/([^/#?]+)/([^/#?]+)");
+ *  tr.setPattern(ResourceType.ENTRY_EDIT, "/atom/([^/#?]+)/([^/#?]+)\\?edit");
+ *  tr.setPattern(ResourceType.MEDIA,"/atom/([^/#?]+)/([^/#?]+)\\?media");
+ *  tr.setPattern(ResourceType.MEDIA_EDIT,"/atom/([^/#?]+)/([^/#?]+)\\?edit-media");
  *  
  *  Target target = tr.resolve("/atom/foo");
  *  System.out.println(target.getResourceType());



Mime
View raw message