|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Task
A Task is a command that can be executed.
When a Task is executed from a TaskAction or initialized from a TaskJob, the default
parameters are provided. This is not a contract!
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_PREFIX
|
static int |
FAILURE
|
static java.lang.String |
NAMESPACE
|
static java.lang.String |
PARAMETER_CONTEXT_PREFIX
The part of the URI that precedes the publication ID: http://www.yourhost.com:8080/lenya/publication/index.html |
static java.lang.String |
PARAMETER_PUBLICATION_ID
The publication ID: http://www.yourhost.com:8080/lenya/publication/index.html |
static java.lang.String |
PARAMETER_SERVER_PORT
The server port: http://www.yourhost.com:8080/lenya/publication/index.html |
static java.lang.String |
PARAMETER_SERVER_URI
The server URI: http://www.yourhost.com:8080/lenya/publication/index.html |
static java.lang.String |
PARAMETER_SERVLET_CONTEXT
The path of the servlet context: /home/user_id/build/jakarta-tomcat/webapps/lenyacms |
static int |
SUCCESS
|
| Method Summary | |
|---|---|
void |
execute(java.lang.String servletContextPath)
Execute the task. |
int |
getResult()
Returns the result of the task ( SUCCESS, FAILURE). |
void |
setLabel(java.lang.String label)
Set the label that is used to identify the task. |
| Methods inherited from interface org.apache.avalon.framework.parameters.Parameterizable |
|---|
parameterize |
| Field Detail |
|---|
static final java.lang.String NAMESPACE
static final java.lang.String DEFAULT_PREFIX
static final int SUCCESS
static final int FAILURE
static final java.lang.String PARAMETER_SERVLET_CONTEXT
/home/user_id/build/jakarta-tomcat/webapps/lenyacms
static final java.lang.String PARAMETER_SERVER_URI
http://www.yourhost.com:8080/lenya/publication/index.html
static final java.lang.String PARAMETER_SERVER_PORT
http://www.yourhost.com:8080/lenya/publication/index.html
static final java.lang.String PARAMETER_CONTEXT_PREFIX
http://www.yourhost.com:8080/lenya/publication/index.html
static final java.lang.String PARAMETER_PUBLICATION_ID
http://www.yourhost.com:8080/lenya/publication/index.html
| Method Detail |
|---|
void execute(java.lang.String servletContextPath)
throws ExecutionException
servletContextPath - the servlet-context
ExecutionException - if the execution failsvoid setLabel(java.lang.String label)
label - the labelint getResult()
SUCCESS, FAILURE).
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||