1 package jalview.ws.rest.params;
3 import jalview.datamodel.AlignmentI;
4 import jalview.ws.rest.InputType;
5 import jalview.ws.rest.RestJob;
6 import jalview.ws.rest.RestServiceDescription;
7 import jalview.ws.rest.InputType.molType;
9 import java.io.UnsupportedEncodingException;
10 import java.util.ArrayList;
11 import java.util.List;
13 import org.apache.http.entity.mime.content.ContentBody;
16 * format a tree for input to a rest service
20 public class Tree extends InputType {
23 super(new Class[] { jalview.analysis.NJTree.class} );
26 // TODO specify modifiers for tree output format
28 public ContentBody formatForInput(RestJob rj) throws UnsupportedEncodingException
30 // TODO: implement tree inputType
31 /*rj.getTreeForInput(token);
32 return new StringBody(new ) */
33 throw new Error("Tree InputType not yet implemented");
36 public String getURLtokenPrefix()
42 public List<String> getURLEncodedParameter()
44 ArrayList<String> prms = new ArrayList<String>();
45 super.addBaseParams(prms);
50 public boolean configureProperty(String tok, String val,
51 StringBuffer warnings)