hello-world-service/src/main/java/org/gcube/service/helloworld/HelloWorld.java

30 lines
781 B
Java
Raw Normal View History

2024-02-21 11:44:41 +01:00
package org.gcube.service.helloworld;
import java.util.HashSet;
import java.util.Set;
2024-02-29 17:21:49 +01:00
import jakarta.ws.rs.ApplicationPath;
import jakarta.ws.rs.core.Application;
2024-02-21 11:44:41 +01:00
2024-02-23 17:35:59 +01:00
import org.gcube.service.helloworld.services.AuthenticatedService;
import org.gcube.service.helloworld.services.ExcludeAuthorizationService;
2024-02-21 11:44:41 +01:00
import org.gcube.service.helloworld.services.HelloService;
2024-02-23 17:35:59 +01:00
/**
*
* @author Lucio Lelii (ISTI-CNR)
*/
2024-02-21 11:44:41 +01:00
@ApplicationPath("")
public class HelloWorld extends Application {
public Set<Class<?>> getClasses() {
final Set<Class<?>> classes = new HashSet<Class<?>>();
// register resources classes implementing Servlets
classes.add(HelloService.class);
2024-02-23 17:35:59 +01:00
classes.add(ExcludeAuthorizationService.class);
classes.add(AuthenticatedService.class);
2024-02-21 11:44:41 +01:00
return classes;
}
}