return format;
}
protected void initializeEnvironment() throws BadEndpointInitializationException {
if (this.req == null) {
throw new BadEndpointInitializationException("Request was not correctly setup");
}
if (this.res == null) {
throw new BadEndpointInitializationException("Response was not correctly setup");
}
if (this.query == null) {
throw new BadEndpointInitializationException("No query found");
}
//CORS
this.res.addHeader("Access-Control-Allow-Origin", "*");
this.res.addHeader("Access-Control-Allow-Methods", "GET, POST, HEAD");