initial implementation of Rest client framework (JAL-715)
[jalview.git] / src / jalview / ws / rest / params / Tree.java
1 package jalview.ws.rest.params;
2
3 import jalview.datamodel.AlignmentI;
4 import jalview.ws.rest.InputType;
5 import jalview.ws.rest.RestJob;
6
7 import java.io.UnsupportedEncodingException;
8
9 import org.apache.http.entity.mime.content.ContentBody;
10
11 /**
12  * format a tree for input to a rest service
13  * @author JimP
14  *
15  */
16 class Tree extends InputType {
17   public Tree()
18   {
19     super(new Class[] { jalview.analysis.NJTree.class} );
20   }
21
22   // TODO specify modifiers for tree output format
23   @Override
24   public ContentBody formatForInput(RestJob rj) throws UnsupportedEncodingException
25   {
26     // TODO: implement tree inputType
27     /*rj.getTreeForInput(token);
28     return new StringBody(new ) */
29     throw new Error("Tree InputType not yet implemented");
30     //return null;
31   }
32   
33 }