| java.lang.Object org.apache.lenya.cms.scheduler.ServletJob
All known Subclasses: org.apache.lenya.cms.scheduler.TaskJob,
ServletJob | abstract public class ServletJob implements Job(Code) | | Scheduling job that uses an HttpServletRequest to obtain its Job data.
|
Method Summary | |
public JobDataMap | createJobData(HttpServletRequest request) Creates the job data from an HTTP request.
Parameters: request - The request. | public String | getDocumentUrl(JobDetail jobDetail) Returns the document URL of a certain job.
Parameters: jobDetail - The job detail. | public JobDetail | load(Element element, String jobGroup, String servletContextPath) Loads the job data from an XML element.
Parameters: element - An XML element. Parameters: jobGroup - The job group the job belongs to. Parameters: servletContextPath - The servlet context path. | public Element | save(NamespaceHelper helper, JobDetail jobDetail) Saves the job data to an XML element.
Parameters: helper - The namespace helper of the document the element shall belong to. Parameters: jobDetail - The job detail to save. | public void | setDocumentUrl(JobDetail jobDetail, String url) Sets the document URL of a job. |
ATTRIBUTE_CLASS | final public static String ATTRIBUTE_CLASS(Code) | | ATTRIBUTE_CLASS The class attribute
|
ATTRIBUTE_DOCUMENT_URL | final public static String ATTRIBUTE_DOCUMENT_URL(Code) | | ATTRIBUTE_DOCUMENT_URL The document url attribute
|
ATTRIBUTE_ID | final public static String ATTRIBUTE_ID(Code) | | ATTRIBUTE_ID The id attribute
|
ATTRIBUTE_SERVLET_CONTEXT | final public static String ATTRIBUTE_SERVLET_CONTEXT(Code) | | ATTRIBUTE_SERVLET_CONTEXT The servlet context attribute
|
ELEMENT_JOB | final public static String ELEMENT_JOB(Code) | | ELEMENT_JOB The job element
|
PARAMETER_DOCUMENT_URL | final public static String PARAMETER_DOCUMENT_URL(Code) | | PARAMETER_DOCUMENT_URL The document URL parameter
|
createJobData | public JobDataMap createJobData(HttpServletRequest request) throws SchedulerException(Code) | | Creates the job data from an HTTP request.
Parameters: request - The request. A job data map. throws: SchedulerException - when something went wrong. |
getDocumentUrl | public String getDocumentUrl(JobDetail jobDetail)(Code) | | Returns the document URL of a certain job.
Parameters: jobDetail - The job detail. A string. |
load | public JobDetail load(Element element, String jobGroup, String servletContextPath) throws SchedulerException(Code) | | Loads the job data from an XML element.
Parameters: element - An XML element. Parameters: jobGroup - The job group the job belongs to. Parameters: servletContextPath - The servlet context path. A job detail object. throws: SchedulerException - when something went wrong. |
save | public Element save(NamespaceHelper helper, JobDetail jobDetail) throws SchedulerException(Code) | | Saves the job data to an XML element.
Parameters: helper - The namespace helper of the document the element shall belong to. Parameters: jobDetail - The job detail to save. An XML element. throws: SchedulerException - when something went wrong. |
setDocumentUrl | public void setDocumentUrl(JobDetail jobDetail, String url)(Code) | | Sets the document URL of a job.
Parameters: jobDetail - The job detail. Parameters: url - The URL. |
|
|