|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uws.service.actions.UWSAction<JL,J> uws.service.actions.SetJobParam<JL,J>
public class SetJobParam<JL extends JobList<J>,J extends AbstractJob>
The "Set Job Parameter" action of a UWS.
Note: The corresponding name is UWSAction.SET_JOB_PARAM
.
This action sets the value of the specified job attribute. The response of this action is a redirection to the job summary.
Field Summary |
---|
Fields inherited from class uws.service.actions.UWSAction |
---|
ADD_JOB, DESTROY_JOB, GET_JOB_PARAM, HOME_PAGE, JOB_SUMMARY, LIST_JOBS, SET_JOB_PARAM, uws |
Constructor Summary | |
---|---|
SetJobParam(AbstractUWS<JL,J> u)
|
Method Summary | |
---|---|
boolean |
apply(UWSUrl urlInterpreter,
java.lang.String userId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the specified job (and throw an error if not found), changes the value of the specified job attribute and makes a redirection to the job summary. |
java.lang.String |
getDescription()
Gets the description of this UWS action. |
java.lang.String |
getName()
Gets the name of this UWS action. |
boolean |
match(UWSUrl urlInterpreter,
java.lang.String userId,
javax.servlet.http.HttpServletRequest request)
Checks whether: a job list name is specified in the given UWS URL (note: by default, the existence of the jobs list is not checked), a job ID is given in the UWS URL (note: by default, the existence of the job is not checked), if the HTTP method is HTTP-POST: there is exactly one attribute and at least one parameter if the HTTP method is HTTP-PUT: there are at least two attributes ( AbstractJob.PARAM_PARAMETERS /{parameter_name}) and there are at least two parameters
|
Methods inherited from class uws.service.actions.UWSAction |
---|
equals, getJob, getJob, getJobsList, getUWS, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SetJobParam(AbstractUWS<JL,J> u)
Method Detail |
---|
public java.lang.String getName()
UWSAction
Gets the name of this UWS action. MUST BE UNIQUE !
Note: By default the name of the class is returned (Class.getName()
).
getName
in class UWSAction<JL extends JobList<J>,J extends AbstractJob>
UWSAction.SET_JOB_PARAM
,
UWSAction.getName()
public java.lang.String getDescription()
UWSAction
Gets the description of this UWS action.
Note: By default an empty string is returned.
getDescription
in class UWSAction<JL extends JobList<J>,J extends AbstractJob>
public boolean match(UWSUrl urlInterpreter, java.lang.String userId, javax.servlet.http.HttpServletRequest request) throws UWSException
AbstractJob.PARAM_PARAMETERS
/{parameter_name}) and there are at least two parameters
match
in class UWSAction<JL extends JobList<J>,J extends AbstractJob>
urlInterpreter
- The UWS URL of the given request.userId
- The user who has sent the given request.request
- The received request.
UWSException
- If any error occurs during the tests.UWSAction.match(uws.service.UWSUrl, java.lang.String, javax.servlet.http.HttpServletRequest)
public boolean apply(UWSUrl urlInterpreter, java.lang.String userId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws UWSException, java.io.IOException
Gets the specified job (and throw an error if not found), changes the value of the specified job attribute and makes a redirection to the job summary.
apply
in class UWSAction<JL extends JobList<J>,J extends AbstractJob>
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).
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.UWSAction.getJob(UWSUrl)
,
UWSToolBox.getParamsMap(HttpServletRequest)
,
ExecutionDurationController.init(Map)
,
DestructionTimeController.init(Map)
,
AbstractJob.addOrUpdateParameters(java.util.Map)
,
AbstractUWS.redirect(String, HttpServletRequest, HttpServletResponse)
,
UWSAction.apply(uws.service.UWSUrl, java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |