ApplicationConfig.java [src/java/m/nmpt] Revision: default Date:
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package m.nmpt;
import csip.Config;
import csip.ContextConfig;
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<Class<?>>();
addRestResourceClasses(resources);
ContextConfig.filterServices(context, resources);
Config.register(resources);
return resources;
}
private void addRestResourceClasses(Set<Class<?>> resources) {
resources.add(csip.ArchiveService.class);
resources.add(csip.CatalogService.class);
resources.add(csip.ControlService.class);
resources.add(csip.QueryService.class);
resources.add(csip.ReportService.class);
resources.add(csip.UIService.class);
resources.add(m.nmpt.nmpt01_getstoptypes.V1_0.class);
resources.add(m.nmpt.nmpt02_getcatfeatname.V1_0.class);
resources.add(m.nmpt.nmpt03_getnatfeatname.V1_0.class);
resources.add(m.nmpt.nmpt04_getsetbackdist.V1_0.class);
resources.add(m.nmpt.nmpt05_getmupct.V1_0.class);
}
}