ApplicationConfig.java [src/java/m/hydrotools] Revision: Date:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package m.hydrotools;
import csip.Config;
import csip.ContextConfig;
import java.util.HashSet;
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 HashSet<>();
addRestResourceClasses(resources);
ContextConfig.filterServices(context, resources);
Config.register(resources);
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.QueryService.class);
resources.add(csip.QueueingModelDataService.class);
resources.add(csip.ReportService.class);
resources.add(csip.UIService.class);
resources.add(m.hydrotools.conv.HECRAS_V1_0.class);
resources.add(m.hydrotools.conv.NOAA_non_V1_0.class);
resources.add(m.hydrotools.conv.NOAA_sm_V1_0.class);
resources.add(m.hydrotools.conv.NRCC_non_V1_0.class);
resources.add(m.hydrotools.conv.NRCC_sm_V1_0.class);
resources.add(m.hydrotools.efh2.V1_0.class);
resources.add(m.hydrotools.efh2.V2_0.class);
resources.add(m.hydrotools.tr20.V1_0.class);
resources.add(m.hydrotools.tr20.V2_0.class);
}
}