uws.service
Class ExtendedUWS.AddJobWithConstructor
java.lang.Object
uws.service.actions.UWSAction<JL,J>
uws.service.actions.AddJob<JobList<AbstractJob>,AbstractJob>
uws.service.ExtendedUWS.AddJobWithConstructor
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- ExtendedUWS
protected class ExtendedUWS.AddJobWithConstructor
- extends AddJob<JobList<AbstractJob>,AbstractJob>
Action AddJob which initializes the attribute ExtendedUWS.jlDestination with the job list in which a job must be added.
Then the original function AddJob.apply(UWSUrl, String, HttpServletRequest, HttpServletResponse) is called.
Finally the attribute ExtendedUWS.jlDestination is reset to null.
- Version:
- 12/2010
- Author:
- Grégory Mantelet (CDS)
- See Also:
- Serialized Form
|
Method Summary |
boolean |
apply(UWSUrl urlInterpreter,
java.lang.String userId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the specified jobs list (throw an error if not found),
creates a new job, adds it to the jobs list and makes a redirection to the summary of this new job. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ExtendedUWS.AddJobWithConstructor
public ExtendedUWS.AddJobWithConstructor(AbstractUWS<JobList<AbstractJob>,AbstractJob> u)
apply
public boolean apply(UWSUrl urlInterpreter,
java.lang.String userId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws UWSException,
java.io.IOException
- Description copied from class:
AddJob
- Gets the specified jobs list (throw an error if not found),
creates a new job, adds it to the jobs list and makes a redirection to the summary of this new job.
- Overrides:
apply in class AddJob<JobList<AbstractJob>,AbstractJob>
- Parameters:
urlInterpreter - The UWS URL of the given request.userId - The user who has sent the given request.request - The received request.response - The response of the given request (MUST BE UPDATED).
- Returns:
- true if the actions has been successfully applied, false otherwise.
- Throws:
UWSException - If any error occurs during the action application.
java.io.IOException - If there is an error while the result is written in the given response.- See Also:
UWSAction.getJobsList(UWSUrl),
UWSToolBox.getParamsMap(HttpServletRequest, java.lang.String),
ExecutionDurationController.init(Map),
DestructionTimeController.init(Map),
AbstractUWS.createJob(java.util.Map),
AbstractUWS.setExecutionManager(uws.job.manager.ExecutionManager),
JobList.addNewJob(AbstractJob),
AbstractUWS.redirect(String, HttpServletRequest, HttpServletResponse),
UWSAction.apply(uws.service.UWSUrl, java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)