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 API instance = null;
19 public static API getInstance() throws BindException
21 synchronized (API.class)
31 private API() throws BindException
36 private boolean init = false;
39 protected void init() throws BindException
46 addEndpoint(new FetchSequenceEndpoint(this));
47 addEndpoint(new OpenAlignmentEndpoint(this));
48 addEndpoint(new HighlightSequenceEndpoint(this));
51 this.registerHandler();
57 * Shared methods below here
61 public String getPath()
66 protected static Map<String, Status> getStatusMap()
71 protected static Map<String, String> getRequestMap()