/*
 * 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 com.qsoft.wmp.services.rest;

import java.util.Set;
import javax.ws.rs.core.Application;
import org.glassfish.jersey.media.multipart.MultiPartFeature;

/**
 *
 * @author james
 */
@javax.ws.rs.ApplicationPath("servicios")
public class ApplicationConfig extends Application {
    
    @Override
    public Set<Class<?>> getClasses() {
        Set<Class<?>> resources = new java.util.HashSet<>();
        resources.add(MultiPartFeature.class);
        addRestResourceClasses(resources);
        return resources;
    }

    /**
     * Do not modify addRestResourceClasses() method. It is automatically populated with all resources defined in the project. If required, comment
     * out calling this method in getClasses().
     */
    private void addRestResourceClasses(Set<Class<?>> resources) {
        resources.add(com.qsoft.wmp.filter.CorsFilter.class);
        resources.add(com.qsoft.wmp.services.rest.AccionResource.class);
        resources.add(com.qsoft.wmp.services.rest.ConsultaResource.class);
        resources.add(com.qsoft.wmp.services.rest.FarmaenlaceResource.class);
        resources.add(com.qsoft.wmp.services.rest.MultipartResource.class);
    }
    

}
