You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2003/08/25 11:54:10 UTC
cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/task Task.java
andreas 2003/08/25 02:54:10
Modified: src/java/org/apache/lenya/cms/task Task.java
Log:
added namespace and parameters array
Revision Changes Path
1.15 +13 -2 cocoon-lenya/src/java/org/apache/lenya/cms/task/Task.java
Index: Task.java
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/task/Task.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- Task.java 23 Jul 2003 13:21:45 -0000 1.14
+++ Task.java 25 Aug 2003 09:54:10 -0000 1.15
@@ -57,7 +57,6 @@
import org.apache.avalon.framework.parameters.Parameterizable;
-
/**
* A Task is a command that can be executed. <br/
* > When a Task is executed from a TaskAction or initialized from a TaskJob, the default
@@ -66,6 +65,10 @@
* @author <a href="mailto:andreas@apache.org">Andreas Hartmann</a>
*/
public interface Task extends Parameterizable {
+
+ String NAMESPACE = "http://apache.org/cocoon/lenya/task/1.0";
+ String DEFAULT_PREFIX = "task";
+
/**
* The path of the servlet
* context:<br/><code>/home/user_id/build/jakarta-tomcat/webapps/lenyacms</code>
@@ -95,6 +98,14 @@
* ID:<br/><code>http://www.yourhost.com:8080/lenya/<strong>publication</strong>/index.html</code>
*/
String PARAMETER_PUBLICATION_ID = "publication-id";
+
+ String[] PARAMETERS =
+ {
+ PARAMETER_SERVLET_CONTEXT,
+ PARAMETER_SERVER_URI,
+ PARAMETER_SERVER_PORT,
+ PARAMETER_CONTEXT_PREFIX,
+ PARAMETER_PUBLICATION_ID };
/**
* Execute the task. All parameters must have been set with parameterize().
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org