import java.util.HashMap;
import java.util.Map;
-import jalview.bin.Cache;
-
public class API extends RestHandler
{
private static final String MY_PATH = "api";
private static Map<String, String> requestMap = new HashMap<>();
+ private static Map<String, Object> objectMap = new HashMap<>();
+
private static API instance = null;
public static API getInstance() throws BindException
super.init(MY_PATH);
// add endpoints here
- addEndpoint(new FetchSequenceEndpoint(this));
- addEndpoint(new OpenAlignmentEndpoint(this));
+ addEndpoint(new FetchSequencesEndpoint(this));
+ addEndpoint(new InputAlignmentEndpoint(this));
addEndpoint(new HighlightSequenceEndpoint(this));
+ addEndpoint(new SelectSequencesEndpoint(this));
+ addEndpoint(new GetCrossReferencesEndpoint(this));
+ addEndpoint(new HighlightGenomicRangeEndpoint(this));
- Cache.info("REMOVEME setting path to " + MY_PATH);
- Cache.info("REMOVEME endpoints keys:");
- for (String key : getEndpoints().keySet())
- {
- Cache.info("REMOVEME keyname=" + key);
- }
setPath(MY_PATH);
this.registerHandler();
{
return requestMap;
}
+
+ protected static Map<String, Object> getObjectMap()
+ {
+ return objectMap;
+ }
}