3 import java.net.BindException;
4 import java.util.HashMap;
7 public class API extends RestHandler
9 private static final String MY_PATH = "api";
11 private static final String MY_NAME = "Jalview API";
13 private static Map<String, Status> statusMap = new HashMap<>();
15 private static Map<String, String> requestMap = new HashMap<>();
17 private static Map<String, Object> objectMap = new HashMap<>();
19 private static API instance = null;
21 public static API getInstance() throws BindException
23 synchronized (API.class)
33 private API() throws BindException
38 private boolean init = false;
41 protected void init() throws BindException
48 addEndpoint(new FetchSequencesEndpoint(this));
49 addEndpoint(new InputAlignmentEndpoint(this));
50 addEndpoint(new HighlightSequenceEndpoint(this));
53 this.registerHandler();
59 * Shared methods below here
63 public String getPath()
68 protected static Map<String, Status> getStatusMap()
73 protected static Map<String, String> getRequestMap()
78 protected static Map<String, Object> getObjectMap()