incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r586757 - in /incubator/sling/whiteboard/microsling/src/main/java/org/apache/sling/microsling/scripting: ScriptEngine.java SlingScriptResolver.java
Date Sat, 20 Oct 2007 16:54:06 GMT
Author: fmeschbe
Date: Sat Oct 20 09:54:01 2007
New Revision: 586757

URL: http://svn.apache.org/viewvc?rev=586757&view=rev
Log: (empty)

Modified:
    incubator/sling/whiteboard/microsling/src/main/java/org/apache/sling/microsling/scripting/ScriptEngine.java
    incubator/sling/whiteboard/microsling/src/main/java/org/apache/sling/microsling/scripting/SlingScriptResolver.java

Modified: incubator/sling/whiteboard/microsling/src/main/java/org/apache/sling/microsling/scripting/ScriptEngine.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/microsling/src/main/java/org/apache/sling/microsling/scripting/ScriptEngine.java?rev=586757&r1=586756&r2=586757&view=diff
==============================================================================
--- incubator/sling/whiteboard/microsling/src/main/java/org/apache/sling/microsling/scripting/ScriptEngine.java
(original)
+++ incubator/sling/whiteboard/microsling/src/main/java/org/apache/sling/microsling/scripting/ScriptEngine.java
Sat Oct 20 09:54:01 2007
@@ -30,6 +30,7 @@
     static final String REQUEST = "request";
     static final String RESPONSE = "response";
     static final String RESOURCE = "resource";
+    static final String REQUEST_CONTEXT = "requestContext";
     static final String OUT = "out";
 
     String[] getExtensions();

Modified: incubator/sling/whiteboard/microsling/src/main/java/org/apache/sling/microsling/scripting/SlingScriptResolver.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/microsling/src/main/java/org/apache/sling/microsling/scripting/SlingScriptResolver.java?rev=586757&r1=586756&r2=586757&view=diff
==============================================================================
--- incubator/sling/whiteboard/microsling/src/main/java/org/apache/sling/microsling/scripting/SlingScriptResolver.java
(original)
+++ incubator/sling/whiteboard/microsling/src/main/java/org/apache/sling/microsling/scripting/SlingScriptResolver.java
Sat Oct 20 09:54:01 2007
@@ -99,6 +99,7 @@
             props.put(ScriptEngine.FILENAME, script.getScriptPath());
             props.put(ScriptEngine.REQUEST, req);
             props.put(ScriptEngine.RESPONSE, resp);
+            props.put(ScriptEngine.REQUEST_CONTEXT, ctx);
             props.put(ScriptEngine.RESOURCE, ctx.getResource());
 
             // evaluate the script now using the ScriptEngine



Mime
View raw message