abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1174261 - /abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/QueryContext.java
Date Thu, 22 Sep 2011 16:56:16 GMT
Author: jmsnell
Date: Thu Sep 22 16:56:15 2011
New Revision: 1174261

URL: http://svn.apache.org/viewvc?rev=1174261&view=rev
Log:
Minor improvements

Modified:
    abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/QueryContext.java

Modified: abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/QueryContext.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/QueryContext.java?rev=1174261&r1=1174260&r2=1174261&view=diff
==============================================================================
--- abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/QueryContext.java
(original)
+++ abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/QueryContext.java
Thu Sep 22 16:56:15 2011
@@ -126,6 +126,14 @@ public class QueryContext extends MapCon
     return new Template(buf.toString());
   }
   
+  public static Template templateFromIri(IRI iri) {
+    return templateFromQuery(iri.toString(), false, null);
+  }
+  
+  public static Template templateFromIri(IRI iri, Context additionalParams) {
+    return templateFromQuery(iri.toString(), false, additionalParams);
+  }
+  
   public static Template templateFromQuery(String query, boolean fragment, Context additionalParams)
{
     Context context = new QueryContext(query);
     if (additionalParams != null)



Mime
View raw message