1 package jalview.ws.rest.params;
3 import jalview.ws.rest.InputType;
4 import jalview.ws.rest.NoValidInputDataException;
5 import jalview.ws.rest.RestJob;
7 import java.io.UnsupportedEncodingException;
9 import org.apache.http.entity.mime.content.ContentBody;
10 import org.apache.http.entity.mime.content.StringBody;
13 * defines a constant value always provided as a parameter.
17 public class JobConstant extends InputType
23 * @param param name of parameter
24 * @param val value of parameter
26 public JobConstant(String param, String val)
28 // needs no data from the restJob
35 public ContentBody formatForInput(RestJob rj)
36 throws UnsupportedEncodingException, NoValidInputDataException
39 return new StringBody(value);