Package | Description |
---|---|
org.json | |
uws | |
uws.job | |
uws.job.serializer | |
uws.service | |
uws.service.actions |
Modifier and Type | Method and Description |
---|---|
static org.json.JSONObject |
Json4Uws.getJson(UWSJob job,
UWSUrl jobsListUrl,
boolean reference)
Gets the JSON representation of the given job.
|
Modifier and Type | Method and Description |
---|---|
static void |
UWSToolBox.printURL(UWSUrl url)
Displays all the fields of the given UWSUrl.
|
static void |
UWSToolBox.printURL(UWSUrl url,
java.io.OutputStream output)
Displays all the fields of the given UWSUrl in the given output stream.
|
Modifier and Type | Method and Description |
---|---|
UWSUrl |
JobList.getUrl()
Gets the UWS URL of this jobs list in function of its UWS.
|
UWSUrl |
UWSJob.getUrl()
Gets the UWS URL of this job in function of its jobs list.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
XMLSerializer.getJobRef(UWSJob job,
UWSUrl jobsListUrl) |
java.lang.String |
JSONSerializer.getJobRef(UWSJob job,
UWSUrl jobsListUrl) |
abstract java.lang.String |
UWSSerializer.getJobRef(UWSJob job,
UWSUrl jobsListUrl)
Serializes just a reference on the given job.
|
Modifier and Type | Field and Description |
---|---|
protected UWSUrl |
UWSService.urlInterpreter
The "interpreter" of UWS URLs.
|
Modifier and Type | Method and Description |
---|---|
UWSUrl |
UWSServlet.getUrlInterpreter()
Gets the UWS URL interpreter of this UWS.
|
UWSUrl |
UWSService.getUrlInterpreter() |
UWSUrl |
UWS.getUrlInterpreter()
Gets the object which is able to interpret and to build any UWS URL.
|
UWSUrl |
UWSUrl.homePage()
Gets the base UWS URI = UWS home page.
|
UWSUrl |
UWSUrl.jobDestruction(java.lang.String jobListName,
java.lang.String jobId)
Gets the UWS URL to get the destruction time.
|
UWSUrl |
UWSUrl.jobError(java.lang.String jobListName,
java.lang.String jobId)
Gets the UWS URL to get the error summary.
|
UWSUrl |
UWSUrl.jobExecDuration(java.lang.String jobListName,
java.lang.String jobId)
Gets the UWS URL to get the execution duration.
|
UWSUrl |
UWSUrl.jobName(java.lang.String jobListName,
java.lang.String jobId)
Gets the UWS URL to get the runID.
|
UWSUrl |
UWSUrl.jobOwner(java.lang.String jobListName,
java.lang.String jobId)
Gets the UWS URL to get the owner ID.
|
UWSUrl |
UWSUrl.jobParameter(java.lang.String jobListName,
java.lang.String jobId,
java.lang.String paramName)
Gets the UWS URL to get the parameters/parameter.
|
UWSUrl |
UWSUrl.jobParameters(java.lang.String jobListName,
java.lang.String jobId)
Gets the UWS URL to get the parameters.
|
UWSUrl |
UWSUrl.jobPhase(java.lang.String jobListName,
java.lang.String jobId)
Gets the UWS URL to get the phase.
|
UWSUrl |
UWSUrl.jobQuote(java.lang.String jobListName,
java.lang.String jobId)
Gets the UWS URL to get the quote.
|
UWSUrl |
UWSUrl.jobResult(java.lang.String jobListName,
java.lang.String jobId,
java.lang.String resultId)
Gets the UWS URL to get the specified result.
|
UWSUrl |
UWSUrl.jobResults(java.lang.String jobListName,
java.lang.String jobId)
Gets the UWS URL to get the results.
|
UWSUrl |
UWSUrl.jobSummary(java.lang.String jobListName,
java.lang.String jobId)
Gets the UWS URL to get the summary.
|
UWSUrl |
UWSUrl.listJobs(java.lang.String jobListName)
Gets the UWS URL to get the specified jobs list.
|
Modifier and Type | Method and Description |
---|---|
protected void |
UWSServlet.doAddJob(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
protected void |
UWSServlet.doDestroyJob(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
protected void |
UWSServlet.doGetJobParam(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
protected void |
UWSServlet.doJobSummary(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
protected void |
UWSServlet.doListJob(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
protected void |
UWSServlet.doSetJobParam(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
protected void |
UWSServlet.doSetUWSParameter(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
JobOwner |
UserIdentifier.extractUserId(UWSUrl urlInterpreter,
javax.servlet.http.HttpServletRequest request)
Extracts the ID of the user/owner of the current session.
|
UWSJob |
UWSServlet.getJob(UWSUrl requestUrl) |
UWSJob |
UWSServlet.getJob(UWSUrl requestUrl,
JobOwner user) |
void |
UWSServlet.setUrlInterpreter(UWSUrl urlInterpreter)
Sets the UWS URL interpreter to use in this UWS.
|
void |
UWSService.setUrlInterpreter(UWSUrl urlInterpreter)
Sets the UWS URL interpreter to use in this UWS.
|
protected void |
UWSServlet.writeHomePage(UWSUrl requestUrl,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
JobOwner user) |
Constructor and Description |
---|
UWSService(UWSFactory jobFactory,
UWSFileManager fileManager,
UWSLog logger,
UWSUrl urlInterpreter)
Builds a UWS with the given UWS URL interpreter.
|
UWSService(UWSFactory jobFactory,
UWSFileManager fileManager,
UWSUrl urlInterpreter)
Builds a UWS with the given UWS URL interpreter.
|
UWSUrl(UWSUrl toCopy)
Builds a copy of the given UWSUrl.
|
Modifier and Type | Method and Description |
---|---|
boolean |
GetJobParam.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the specified job (and throw an error if not found),
chooses the serializer and write the serialization of the job attribute in the given response.
|
boolean |
ListJobs.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the specified jobs list (and throw an error if not found),
chooses the serializer and write the serialization of the jobs list in
the given response.
|
abstract boolean |
UWSAction.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Applies this UWS action in function of the given request
and writes the result in the given response.
|
boolean |
SetUWSParameter.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Get the specified job (throw an error if not found),
and update the specified UWS standard parameter.
|
boolean |
JobSummary.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the specified job (and throw an error if not found),
chooses the serializer and write the serialization of the job in the
given response.
|
boolean |
SetJobParam.apply(UWSUrl urlInterpreter,
JobOwner user,
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.
|
boolean |
ShowHomePage.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Writes the UWS home page in the given HttpServletResponse.
|
boolean |
AddJob.apply(UWSUrl urlInterpreter,
JobOwner user,
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.
|
boolean |
DestroyJob.apply(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the specified jobs list (throw an error if not found),
gets the specified job (throw an error if not found),
destroys the job and makes a redirection to the jobs list.
|
protected UWSJob |
UWSAction.getJob(UWSUrl urlInterpreter)
Extracts the job ID from the given UWS URL
and gets the corresponding job from the UWS.
|
protected UWSJob |
UWSAction.getJob(UWSUrl urlInterpreter,
JobList jobsList)
Extracts the job ID from the given UWS URL and gets the corresponding job from the given jobs list.
|
protected UWSJob |
UWSAction.getJob(UWSUrl urlInterpreter,
JobList jobsList,
JobOwner user)
Extracts the job ID from the given UWS URL and gets the corresponding job from the given jobs list.
|
protected UWSJob |
UWSAction.getJob(UWSUrl urlInterpreter,
JobOwner user)
Extracts the job ID from the given UWS URL and gets the corresponding job from the UWS.
|
protected JobList |
UWSAction.getJobsList(UWSUrl urlInterpreter)
Extracts the name of the jobs list from the given UWS URL
and gets the jobs list from the UWS.
|
boolean |
GetJobParam.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Checks whether:
a job list name is specified in the given UWS URL (note: the existence of the jobs list is not checked),
a job ID is given in the UWS URL (note: the existence of the job is not checked),
there is a job attribute,
the HTTP method is HTTP-GET.
|
boolean |
ListJobs.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Checks whether:
a job list name is specified in the given UWS URL
(note: the existence of the jobs list is not checked),
the UWS URL does not make a reference to a job (so: no job ID),
the HTTP method is HTTP-GET.
|
abstract boolean |
UWSAction.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Indicates whether the given request corresponds to this UWS action.
|
boolean |
SetUWSParameter.match(UWSUrl urlInterpreter,
JobOwner user,
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 yet checked),
the job attribute "phase", "runID", "executionduration" or "destruction" is used in the UWS URL,
the HTTP method is HTTP-POST or HTTP-PUT.
|
boolean |
JobSummary.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Checks whether:
a job list name is specified in the given UWS URL
(note: the existence of the jobs list is not checked),
a job ID is given in the UWS URL
(note: the existence of the job is not checked),
there is no job attribute,
the HTTP method is HTTP-GET.
|
boolean |
SetJobParam.match(UWSUrl urlInterpreter,
JobOwner user,
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 yet 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 (
UWSJob.PARAM_PARAMETERS /{parameter_name}) and there are at least two parameters
|
boolean |
ShowHomePage.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Checks whether there is no jobs list name.
|
boolean |
AddJob.match(UWSUrl urlInterpreter,
JobOwner user,
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),
the UWS URL does not make a reference to a job (so: no job ID),
the HTTP method is HTTP-POST.
|
boolean |
DestroyJob.match(UWSUrl urlInterpreter,
JobOwner user,
javax.servlet.http.HttpServletRequest request)
Checks whether:
a job list name is specified in the given UWS URL (note: the existence of the jobs list is not checked),
a job ID is given in the UWS URL (note: the existence of the job is not checked),
no job attribute is specified in the URL (i.e.
|