public interface UWSFactory
HttpServletRequest.UWS.getFactory()| Modifier and Type | Method and Description |
|---|---|
UWSJob |
createJob(javax.servlet.http.HttpServletRequest request,
JobOwner user)
Creates a (PENDING) UWS job from the given HTTP request.
|
UWSJob |
createJob(java.lang.String jobID,
long creationTime,
JobOwner owner,
UWSParameters params,
long quote,
long startTime,
long endTime,
java.util.List<Result> results,
ErrorSummary error)
Creates a UWS job with the following attributes.
|
JobThread |
createJobThread(UWSJob jobDescription)
Creates the thread which will executes the task described by the given
UWSJob instance. |
RequestParser |
createRequestParser(UWSFileManager manager)
Create a parser of HTTP requests.
|
UWSParameters |
createUWSParameters(javax.servlet.http.HttpServletRequest request)
Lets extracting all parameters from the given request.
|
UWSParameters |
createUWSParameters(java.util.Map<java.lang.String,java.lang.Object> params)
Lets extracting all parameters from the given map.
|
UWSJob createJob(javax.servlet.http.HttpServletRequest request, JobOwner user) throws UWSException
request - Request which triggers the creation of a UWS job.user - The identified UWS user (see UserIdentifier).UWSException - If there is an error while creating the job.UWSJob createJob(java.lang.String jobID, long creationTime, JobOwner owner, UWSParameters params, long quote, long startTime, long endTime, java.util.List<Result> results, ErrorSummary error) throws UWSException
Creates a UWS job with the following attributes.
jobID - ID of the job (NOT NULL).creationTime - Creation date/time of the job (SHOULD NOT BE
NEGATIVE OR NULL).owner - Owner of the job.params - List of all input UWS job parameters.quote - Its quote (in seconds).startTime - Date/Time of the start of this job.endTime - Date/Time of the end of this job.results - All results of this job.error - The error which ended the job to create.UWSException - If there is an error while creating the job.JobThread createJobThread(UWSJob jobDescription) throws UWSException
UWSJob instance.jobDescription - Description of the task to execute.UWSException - If there is an error while creating the job task.UWSParameters createUWSParameters(javax.servlet.http.HttpServletRequest request) throws UWSException
request - The request from which parameters must be extracted.UWSException - If an error occurs while extracting parameters.UWSParameters createUWSParameters(java.util.Map<java.lang.String,java.lang.Object> params) throws UWSException
params - All the parameters to check and to store.UWSException - If an error occurs while extracting parameters.RequestParser createRequestParser(UWSFileManager manager) throws UWSException
manager - File manager to use if files are uploaded in an HTTP request.UWSException - If an error occurs while creating the parser.