|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuws.service.UWSUrl_Old
public class UWSUrl_Old
This class helps managing with UWS URLs.
| Field Summary | |
|---|---|
protected java.lang.String |
attributeName
Name of the job attribute found in the last parsed URL. |
protected java.net.URL |
baseUrl
Base UWS URL. |
protected java.lang.String |
jobId
The JobID found in the last parsed URL. |
protected java.lang.String |
jobListName
Name of a jobs list found in the last parsed URL. |
| Constructor Summary | |
|---|---|
UWSUrl_Old(java.net.URL baseUrl)
Builds the UWS URL "interpreter" with the base UWS URL. |
|
UWSUrl_Old(java.net.URL baseUrl,
java.lang.String jobListName,
java.lang.String jobId)
Builds the UWS URL "interpreter" with the base UWS URL, a jobs list name and a job ID. |
|
UWSUrl_Old(java.net.URL baseUrl,
java.net.URL uwsUrl)
Builds the UWS URL "interpreter" with the base UWS URL and a UWS URL (derived from the base UWS URL: uwsUrl = baseUrl + "/" + jobListName [+ "/" + jobID [+ "/" + parameter [+ "/" + queryPart]]]). |
|
| Method Summary | |
|---|---|
java.lang.String |
abortJob()
Gets the UWS URL (HTTP-GET ONLY) to abort the specified job. |
java.lang.String |
changeDestructionTime(java.lang.String newDestructionTime)
Gets the UWS URL (HTTP-GET ONLY) to change the destruction time. |
java.lang.String |
changeExecDuration(java.lang.String newExecDuration)
Gets the UWS URL (HTTP-GET ONLY) to change the execution duration. |
java.lang.String |
changeJobName(java.lang.String newName)
Gets the UWS URL (HTTP-GET ONLY) to change the run ID. |
java.lang.String |
changeJobParam(java.lang.String paramName,
java.lang.String paramValue)
Gets the UWS URL (HTTP-GET ONLY) to change the specified parameter. |
java.lang.String |
createJob(java.util.Map<java.lang.String,java.lang.String> parameters)
Gets the UWS URL (HTTP-GET ONLY) to create a job with the given parameters. |
java.lang.String |
deleteJob()
Gets the UWS URL (HTTP-GET ONLY) to delete the specified job. |
static java.net.URL |
extractBaseUWSUrl(javax.servlet.http.HttpServletRequest req,
boolean endByJobList)
Deprecated. Moved into UWSToolBox: UWSToolBox.extractBaseUWSUrl(HttpServletRequest, boolean) |
java.lang.String |
getAttributeName()
Gets the job attribute name (i.e. jobId, phase, etc...) found in the last parsed UWS URL. |
java.net.URL |
getBaseUrl()
Gets the base UWS URL given at the initialization of this instance of UWSUrl_Old. |
java.lang.String |
getJobId()
Gets the job ID found in the last parsed UWS URL. |
java.lang.String |
getJobListName()
Gets the jobs list name found in the last parsed UWS URL. |
static java.util.Map<java.lang.String,java.lang.String> |
getParameters(java.lang.String queryPart)
Deprecated. Moved into UWSToolBox: UWSToolBox.getParameters(String) |
java.lang.String |
getParamName()
Deprecated. Replaced by getAttributeName(), so that avoiding confusion with the parameter of a HTTP request. |
static java.lang.String |
getQueryPart(java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated. Moved into UWSToolBox: UWSToolBox.getQueryPart(Map). |
java.lang.String |
getUWSName()
Gets the supposed name of the UWS from its baseUrl. |
java.lang.String |
homePage()
Gets the base UWS URL = UWS home page. |
java.lang.String |
jobDestruction()
Gets the UWS URL to get the destruction time. |
java.lang.String |
jobError()
Gets the UWS URL to get the error summary. |
java.lang.String |
jobExecDuration()
Gets the UWS URL to get the execution duration. |
java.lang.String |
jobName()
Gets the UWS URL to get the runID. |
java.lang.String |
jobOwner()
Gets the UWS URL to get the owner ID. |
java.lang.String |
jobParameter(java.lang.String paramName)
Gets the UWS URL to get the parameters/parameter. |
java.lang.String |
jobParameters()
Gets the UWS URL to get the parameters. |
java.lang.String |
jobPhase()
Gets the UWS URL to get the phase. |
java.lang.String |
jobQuote()
Gets the UWS URL to get the quote. |
java.lang.String |
jobResult(java.lang.String resultId)
Gets the UWS URL to get the specified result. |
java.lang.String |
jobResults()
Gets the UWS URL to get the results. |
java.lang.String |
jobSummary()
Gets the UWS URL to get the summary. |
java.lang.String |
listJobs()
Gets the UWS URL to get the specified jobs list. |
void |
loadUwsURL(java.net.URL uwsUrl)
Parses the given UWS URL. |
void |
setJobId(java.lang.String jobId)
Sets the job ID to use to build any UWS URL. |
void |
setJobListName(java.lang.String jobListName)
Sets the jobs list name to use to build any UWS URL. |
java.lang.String |
startJob()
Gets the UWS URL (HTTP-GET ONLY) to start the specified job. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.net.URL baseUrl
protected java.lang.String jobListName
protected java.lang.String jobId
protected java.lang.String attributeName
| Constructor Detail |
|---|
public UWSUrl_Old(java.net.URL baseUrl)
baseUrl - The base UWS URL.
public UWSUrl_Old(java.net.URL baseUrl,
java.lang.String jobListName,
java.lang.String jobId)
baseUrl - A base UWS URL.jobListName - The name of a jobs list.jobId - The ID of a job.UWSUrl_Old#UWSUrl(URL)
public UWSUrl_Old(java.net.URL baseUrl,
java.net.URL uwsUrl)
throws UWSException
baseUrl - The base UWS URL.uwsUrl - Any valid UWS URL.
UWSException - If the given UWS URL is not derived from the given base UWS URL.UWSUrl_Old#UWSUrl(URL),
loadUwsURL(URL)| Method Detail |
|---|
public void loadUwsURL(java.net.URL uwsUrl)
throws UWSException
Parses the given UWS URL.
Warning: It must be derived from the base UWS URL given at the initialization of this instance of UWSUrl_Old:
uwsUrl = baseUrl + "/" + jobListName [+ "/" + jobID [+ "/" + parameter [+ "/" + queryPart]]]
uwsUrl - The UWS URL to parse.
UWSException - If the given UWS URL is not derived from the base UWS URL given at the initialization.public final java.lang.String getJobListName()
public final void setJobListName(java.lang.String jobListName)
jobListName - A jobs list name.public final java.lang.String getJobId()
public final void setJobId(java.lang.String jobId)
jobId - A job ID.public final java.net.URL getBaseUrl()
UWSUrl_Old.
public final java.lang.String getUWSName()
@Deprecated public final java.lang.String getParamName()
getAttributeName(), so that avoiding confusion with the parameter of a HTTP request.
getAttributeName()public final java.lang.String getAttributeName()
public final java.lang.String homePage()
public final java.lang.String listJobs()
public final java.lang.String jobSummary()
public final java.lang.String jobName()
public final java.lang.String jobPhase()
public final java.lang.String jobExecDuration()
public final java.lang.String jobDestruction()
public final java.lang.String jobError()
public final java.lang.String jobQuote()
public final java.lang.String jobResults()
public final java.lang.String jobResult(java.lang.String resultId)
public final java.lang.String jobParameters()
public final java.lang.String jobParameter(java.lang.String paramName)
public final java.lang.String jobOwner()
public final java.lang.String createJob(java.util.Map<java.lang.String,java.lang.String> parameters)
public final java.lang.String deleteJob()
public final java.lang.String startJob()
public final java.lang.String abortJob()
public final java.lang.String changeJobName(java.lang.String newName)
public final java.lang.String changeDestructionTime(java.lang.String newDestructionTime)
public final java.lang.String changeExecDuration(java.lang.String newExecDuration)
public final java.lang.String changeJobParam(java.lang.String paramName,
java.lang.String paramValue)
@Deprecated public static final java.lang.String getQueryPart(java.util.Map<java.lang.String,java.lang.String> parameters)
UWSToolBox.getQueryPart(Map).
parameters - A Map of parameters.
UWSToolBox.getQueryPart(Map)@Deprecated public static final java.util.Map<java.lang.String,java.lang.String> getParameters(java.lang.String queryPart)
UWSToolBox.getParameters(String)
queryPart - A query part of a HTTP-GET URL.
UWSToolBox.getParameters(String)
@Deprecated
public static final java.net.URL extractBaseUWSUrl(javax.servlet.http.HttpServletRequest req,
boolean endByJobList)
throws java.net.MalformedURLException
UWSToolBox.extractBaseUWSUrl(HttpServletRequest, boolean)
req - The request.endByJobList - true if the servlet path (the url-pattern given in the web.xml) finishes by the name of the JobList, false if it does not contain the name of the JobList.
java.net.MalformedURLException - If it is impossible to build the base UWS URL with the given request.UWSToolBox.extractBaseUWSUrl(HttpServletRequest, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||