Updated gcube-app configuration
This commit is contained in:
parent
44335052c3
commit
c5b325344b
|
@ -53,7 +53,7 @@ public class GeoPortalService extends ResourceConfig {
|
||||||
registerClasses(ProfiledDocuments.class);
|
registerClasses(ProfiledDocuments.class);
|
||||||
registerClasses(UseCaseDescriptors.class);
|
registerClasses(UseCaseDescriptors.class);
|
||||||
registerClasses(Plugins.class);
|
registerClasses(Plugins.class);
|
||||||
//registerClasses(GeoportalHealth.class);
|
registerClasses(GeoportalHealth.class);
|
||||||
// registerClasses(DocsGenerator.class);
|
// registerClasses(DocsGenerator.class);
|
||||||
|
|
||||||
log.info("Setting implementations .. ");
|
log.info("Setting implementations .. ");
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
package org.gcube.application.geoportal.service;
|
//package org.gcube.application.geoportal.service;
|
||||||
|
//
|
||||||
import javax.ws.rs.ApplicationPath;
|
//import javax.ws.rs.ApplicationPath;
|
||||||
|
//
|
||||||
import org.gcube.application.geoportal.service.rest.GeoportalHealth;
|
//import org.gcube.application.geoportal.service.rest.GeoportalHealth;
|
||||||
import org.glassfish.jersey.server.ResourceConfig;
|
//import org.glassfish.jersey.server.ResourceConfig;
|
||||||
|
//
|
||||||
@ApplicationPath("/api")
|
//@ApplicationPath("/")
|
||||||
public class GeoPortalServiceHealth extends ResourceConfig {
|
//public class GeoPortalServiceHealth extends ResourceConfig {
|
||||||
|
//
|
||||||
public GeoPortalServiceHealth() {
|
// public GeoPortalServiceHealth() {
|
||||||
|
//
|
||||||
registerClasses(GeoportalHealth.class);
|
// registerClasses(GeoportalHealth.class);
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
//}
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE xml>
|
||||||
|
<application mode='online'>
|
||||||
|
<name>${project.artifactId}</name>
|
||||||
|
<group>${project.groupId}</group>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<description>${project.description}</description>
|
||||||
|
<!-- <exclude>/srv/docs/*</exclude> -->
|
||||||
|
<!-- <exclude>/srv/api-docs/*</exclude> -->
|
||||||
|
<exclude>/src/health</exclude>
|
||||||
|
</application>
|
||||||
|
|
|
@ -29,11 +29,7 @@
|
||||||
<servlet-name>default</servlet-name>
|
<servlet-name>default</servlet-name>
|
||||||
<url-pattern>/api-docs/*</url-pattern>
|
<url-pattern>/api-docs/*</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
<servlet-mapping>
|
|
||||||
<servlet-name>default</servlet-name>
|
|
||||||
<url-pattern>/api/health</url-pattern>
|
|
||||||
</servlet-mapping>
|
|
||||||
|
|
||||||
<servlet-mapping>
|
<servlet-mapping>
|
||||||
<servlet-name>org.gcube.application.geoportal.service.GeoPortalService
|
<servlet-name>org.gcube.application.geoportal.service.GeoPortalService
|
||||||
</servlet-name>
|
</servlet-name>
|
||||||
|
|
Loading…
Reference in New Issue