initial implementation of Rest client framework (JAL-715)
[jalview.git] / src / jalview / ws / rest / params / Tree.java
diff --git a/src/jalview/ws/rest/params/Tree.java b/src/jalview/ws/rest/params/Tree.java
new file mode 100644 (file)
index 0000000..91fab40
--- /dev/null
@@ -0,0 +1,33 @@
+package jalview.ws.rest.params;
+
+import jalview.datamodel.AlignmentI;
+import jalview.ws.rest.InputType;
+import jalview.ws.rest.RestJob;
+
+import java.io.UnsupportedEncodingException;
+
+import org.apache.http.entity.mime.content.ContentBody;
+
+/**
+ * format a tree for input to a rest service
+ * @author JimP
+ *
+ */
+class Tree extends InputType {
+  public Tree()
+  {
+    super(new Class[] { jalview.analysis.NJTree.class} );
+  }
+
+  // TODO specify modifiers for tree output format
+  @Override
+  public ContentBody formatForInput(RestJob rj) throws UnsupportedEncodingException
+  {
+    // TODO: implement tree inputType
+    /*rj.getTreeForInput(token);
+    return new StringBody(new ) */
+    throw new Error("Tree InputType not yet implemented");
+    //return null;
+  }
+  
+}
\ No newline at end of file