ApplicationConfig.java [src/java/m/cfa] Revision: 017f661d0041f1386c002d47a83b1f6052176b16 Date: Tue Apr 30 15:56:23 MDT 2024
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package m.cfa;
import csip.Config;
import java.util.Set;
import javax.servlet.ServletContext;
import javax.ws.rs.core.Application;
import javax.ws.rs.core.Context;
/**
*
* @author User
*/
@javax.ws.rs.ApplicationPath("")
public class ApplicationConfig extends Application {
@Context
private ServletContext context;
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> resources = new java.util.HashSet<>();
addRestResourceClasses(resources);
Config.register(resources, context);
return resources;
}
/**
* Do not modify addRestResourceClasses() method. It is automatically
* re-generated by NetBeans REST support to populate given list with all
* resources defined in the project.
*/
private void addRestResourceClasses(Set<Class<?>> resources) {
resources.add(csip.ArchiveService.class);
resources.add(csip.CatalogService.class);
resources.add(csip.ControlService.class);
resources.add(csip.DynamicPyModelDataService.class);
resources.add(csip.GzipWriterInterceptor.class);
resources.add(csip.QueryService.class);
resources.add(csip.ReportService.class);
resources.add(csip.UIService.class);
resources.add(m.cfa.baseflow.V1_0.class);
resources.add(m.cfa.download.V1_0.class);
resources.add(m.cfa.drought.V1_0.class);
resources.add(m.cfa.durationcurve.V1_0.class);
resources.add(m.cfa.errorstats.V1_0.class);
resources.add(m.cfa.flood.V1_0.class);
resources.add(m.cfa.flood.V2_0.class);
resources.add(m.cfa.loadest.V1_0.class);
resources.add(m.cfa.regionalfdc.V1_0.class);
resources.add(m.cfa.stagedischarge.V1_0.class);
resources.add(m.cfa.storetservice.V1_0.class);
resources.add(m.cfa.timeseries.V1_0.class);
resources.add(m.cfa.timeseries15min.V1_0.class);
resources.add(m.cfa.trends.V1_0.class);
}
}