package jalview.ws.rest.params; import jalview.datamodel.AlignmentI; import jalview.ws.rest.InputType; import jalview.ws.rest.RestJob; import jalview.ws.rest.RestServiceDescription; import jalview.ws.rest.InputType.molType; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.List; import org.apache.http.entity.mime.content.ContentBody; /** * format a tree for input to a rest service * @author JimP * */ public 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; } public String getURLtokenPrefix() { return "NEWICK"; } @Override public List getURLEncodedParameter() { ArrayList prms = new ArrayList(); super.addBaseParams(prms); return prms; } @Override public boolean configureProperty(String tok, String val, StringBuffer warnings) { return true; } }