2018-10-12 16:20:46 +02:00
|
|
|
package org.gcube.datatransfer.resolver;
|
|
|
|
|
|
|
|
import javax.ws.rs.Path;
|
|
|
|
|
2018-12-12 15:38:44 +01:00
|
|
|
import org.gcube.data.analysis.dminvocation.model.DataMinerInvocation;
|
2018-11-15 15:35:54 +01:00
|
|
|
import org.gcube.datatransfer.resolver.init.UriResolverSmartGearManagerInit;
|
2019-03-15 12:23:04 +01:00
|
|
|
import org.gcube.datatransfer.resolver.requesthandler.RequestHandler;
|
2018-11-15 12:18:03 +01:00
|
|
|
import org.gcube.datatransfer.resolver.services.CatalogueResolver;
|
2019-04-08 11:55:21 +02:00
|
|
|
import org.gcube.datatransfer.resolver.services.tobackward.BackCatalogueResolver;
|
2018-11-15 15:35:54 +01:00
|
|
|
import org.gcube.smartgears.annotations.ManagedBy;
|
2018-10-18 18:24:49 +02:00
|
|
|
import org.glassfish.jersey.server.ResourceConfig;
|
2018-10-12 16:20:46 +02:00
|
|
|
|
|
|
|
@Path("uri-resolver")
|
2018-11-15 15:35:54 +01:00
|
|
|
@ManagedBy(UriResolverSmartGearManagerInit.class)
|
2018-10-18 18:24:49 +02:00
|
|
|
public class UriResolver extends ResourceConfig {
|
2018-10-12 16:20:46 +02:00
|
|
|
|
2018-10-18 18:24:49 +02:00
|
|
|
public UriResolver() {
|
|
|
|
// Register all resources present under the package.
|
2019-04-08 11:55:21 +02:00
|
|
|
packages(CatalogueResolver.class.getPackage().getName(), RequestHandler.class.getPackage().getName(), BackCatalogueResolver.class.getPackage().getName());
|
2018-12-12 15:38:44 +01:00
|
|
|
packages(DataMinerInvocation.class.getPackage().getName());
|
2018-10-12 16:20:46 +02:00
|
|
|
}
|
|
|
|
}
|
2018-10-18 18:24:49 +02:00
|
|
|
|