private String getStage(Stage stg)
{
if (stg == Stage.SUBMIT)
+ {
return "submitting ";
+ }
if (stg == Stage.POLL)
+ {
return "checking status of ";
+ }
return (" being confused about ");
}
+ " location(s) provided in response header ( next one is '"
+ loc[1].getValue() + "' )");
}
+ // TODO: job ID may not be simply a redirect in response to the post.
+ // might need other scraping mechanisms here.
+
rj.setJobId(loc[0].getValue());
rj.setSubmitted(true);
}
*/
package jalview.ws.rest;
+import jalview.datamodel.SequenceI;
+import jalview.io.packed.DataProvider.JvDataType;
+import jalview.util.StringUtils;
+import jalview.ws.rest.params.Alignment;
+import jalview.ws.rest.params.AnnotationFile;
+import jalview.ws.rest.params.SeqGroupIndexVector;
+
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-import jalview.datamodel.SequenceI;
-import jalview.io.packed.DataProvider.JvDataType;
-import jalview.util.StringUtils;
-import jalview.ws.rest.params.Alignment;
-import jalview.ws.rest.params.AnnotationFile;
-import jalview.ws.rest.params.SeqGroupIndexVector;
-
public class RestServiceDescription
{
private static final Pattern PARAM_ENCODED_URL_PATTERN = Pattern.compile("([?&])([A-Za-z0-9_]+)=\\$([^$]+)\\$");
public String getDecoratedResultUrl(String jobId)
{
+ // TODO: JPred4 - jobs are checked at a different path to the jobId ?
// TODO: correctly write ?/& appropriate to result URL format.
return jobId + urlSuffix;
}