ApplicationConfig.java [src/java/m/watershed] Revision: default  Date:
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package m.watershed;

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.watershed.CO_dist2water.V1_0.class);
        resources.add(m.watershed.CO_dist2water.V2_0.class);
        resources.add(m.watershed.LS_factor.V1_0.class);
        resources.add(m.watershed.LS_factor.V2_0.class);
        resources.add(m.watershed.average_aspect.V1_0.class);
        resources.add(m.watershed.average_slope.V4_0.class);
        resources.add(m.watershed.average_slope.V4_0_1.class);
        resources.add(m.watershed.average_slope.V5_0.class);
        resources.add(m.watershed.basic.V1_0.class);
        resources.add(m.watershed.cadel_accum.V1_0.class);
        resources.add(m.watershed.cfactor.V1_0.class);
        resources.add(m.watershed.cfactor.V2_0.class);
        resources.add(m.watershed.checkDEM1m_cover.V1_0.class);
        resources.add(m.watershed.checkDEM3m_cover.V1_0.class);
        resources.add(m.watershed.checkDEM_cover.V1_0.class);
        resources.add(m.watershed.cost_distance.V1_0.class);
        resources.add(m.watershed.curve_number_NLCD.V1_0.class);
        resources.add(m.watershed.curve_number_NLCD.V2_0.class);
        resources.add(m.watershed.d8flowdir.V1_0.class);
        resources.add(m.watershed.d8flowdir.V2_0.class);
        resources.add(m.watershed.dinfflowdir.V1_0.class);
        resources.add(m.watershed.dist2stream.V1_0.class);
        resources.add(m.watershed.extract_DEM.V1_0.class);
        resources.add(m.watershed.extract_SRTMDEM.V1_0.class);
        resources.add(m.watershed.extract_stream.V1_0.class);
        resources.add(m.watershed.extract_watershed.V1_0.class);
        resources.add(m.watershed.field_to_WEPP.V1_0.class);
        resources.add(m.watershed.field_to_WEPP.V2_0.class);
        resources.add(m.watershed.fill_sinks.V1_0.class);
        resources.add(m.watershed.fill_sinks.V2_0.class);
        resources.add(m.watershed.flow_accumulate.V1_0.class);
        resources.add(m.watershed.flow_accumulate.V2_0.class);
        resources.add(m.watershed.flow_accumulate_inf.V1_0.class);
        resources.add(m.watershed.gage_watershed.V1_0.class);
        resources.add(m.watershed.grid_analysis.V1_0.class);
        resources.add(m.watershed.grid_analysis.V2_0.class);
        resources.add(m.watershed.hru.V1_0.class);
        resources.add(m.watershed.manning.V1_0.class);
        resources.add(m.watershed.merge_geometries.V1_0.class);
        resources.add(m.watershed.mod_Peuker_Douglas.V1_0.class);
        resources.add(m.watershed.mod_Peuker_Douglas.V2_0.class);
        resources.add(m.watershed.outlet.V1_0.class);
        resources.add(m.watershed.outlet.V2_0.class);
        resources.add(m.watershed.outletPoint_to_WEPP.V1_0.class);
        resources.add(m.watershed.point_to_swat.V1_0.class);
        resources.add(m.watershed.point_to_swat.V2_0.class);
        resources.add(m.watershed.raster_stats.V1_0.class);
        resources.add(m.watershed.raster_stats.V2_0.class);
        resources.add(m.watershed.raster_stats.V2_01.class);
        resources.add(m.watershed.slope.V1_0.class);
        resources.add(m.watershed.slopelength.V1_0.class);
        resources.add(m.watershed.slopelength.V2_0.class);
        resources.add(m.watershed.soil_topography_index.V1_0.class);
        resources.add(m.watershed.soil_topography_index.V2_0.class);
        resources.add(m.watershed.stream_network.V1_0.class);
        resources.add(m.watershed.stream_network.V2_0.class);
        resources.add(m.watershed.stream_raster.V1_0.class);
        resources.add(m.watershed.time_of_conc.V1_0.class);
        resources.add(m.watershed.topography_index.V1_0.class);
        resources.add(m.watershed.topography_index.V2_0.class);
        resources.add(m.watershed.userupload.V1_0.class);
        resources.add(m.watershed.userupload_vector.V1_0.class);
        resources.add(m.watershed.w_flow_accumulate.V1_0.class);
        resources.add(m.watershed.wildfire.V1_0.class);
    }
}