Updated paths
This commit is contained in:
parent
f6004df3db
commit
b57bd03889
|
@ -11,6 +11,7 @@
|
|||
|
||||
|
||||
|
||||
|
||||
<wb-module deploy-name="uri-resolver-2.8.1">
|
||||
|
||||
|
||||
|
@ -24,6 +25,7 @@
|
|||
|
||||
|
||||
|
||||
|
||||
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
|
||||
|
||||
|
||||
|
@ -37,6 +39,7 @@
|
|||
|
||||
|
||||
|
||||
|
||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||
|
||||
|
||||
|
@ -50,6 +53,7 @@
|
|||
|
||||
|
||||
|
||||
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
|
||||
|
||||
|
@ -63,7 +67,12 @@
|
|||
|
||||
|
||||
|
||||
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||
<dependent-module archiveName="uri-resolver-manager-1.6.0.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/uri-resolver-manager/uri-resolver-manager">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -89,6 +98,7 @@
|
|||
|
||||
|
||||
|
||||
|
||||
<property name="java-output-path" value="/uri-resolver/target/classes"/>
|
||||
|
||||
|
||||
|
@ -102,6 +112,7 @@
|
|||
|
||||
|
||||
|
||||
|
||||
</wb-module>
|
||||
|
||||
|
||||
|
@ -115,4 +126,5 @@
|
|||
|
||||
|
||||
|
||||
|
||||
</project-modules>
|
||||
|
|
|
@ -46,7 +46,7 @@ import com.google.common.cache.CacheLoader.InvalidCacheLoadException;
|
|||
*
|
||||
* Mar 23, 2023
|
||||
*/
|
||||
@Path("")
|
||||
@Path("/")
|
||||
public class GeoportalResolver {
|
||||
|
||||
public static final String GEO_DE = "geo-de";
|
||||
|
@ -85,7 +85,7 @@ public class GeoportalResolver {
|
|||
* @throws WebApplicationException the web application exception
|
||||
*/
|
||||
@GET
|
||||
@Path(GEO+"/{vre_name}/{usecase_id}/{project_id}")
|
||||
@Path(GEO + "/{vre_name}/{usecase_id}/{project_id}")
|
||||
public Response resolveGeoportal(@Context HttpServletRequest req, @PathParam(PATH_VRE_NAME) String vreName,
|
||||
@PathParam(PATH_USECASE_ID) String ucdID, @PathParam(PATH_PROJECT_ID) String projectID,
|
||||
@QueryParam(QP_RESOLVE_AS) String resolveAs) throws WebApplicationException {
|
||||
|
@ -94,47 +94,47 @@ public class GeoportalResolver {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve geoportal DV.
|
||||
*
|
||||
* @param req the req
|
||||
* @param vreName the vre name
|
||||
* @param ucdID the ucd ID
|
||||
* @param projectID the project ID
|
||||
* @param resolveAs the resolve as
|
||||
* @return the response
|
||||
* @throws WebApplicationException the web application exception
|
||||
*/
|
||||
@GET
|
||||
@Path(GEO_DV+"/{vre_name}/{usecase_id}/{project_id}")
|
||||
public Response resolveGeoportalDV(@Context HttpServletRequest req, @PathParam(PATH_VRE_NAME) String vreName,
|
||||
@PathParam(PATH_USECASE_ID) String ucdID, @PathParam(PATH_PROJECT_ID) String projectID,
|
||||
@QueryParam(QP_RESOLVE_AS) String resolveAs) throws WebApplicationException {
|
||||
String targetAppId = GEO_DV;
|
||||
return genericGet(req, targetAppId, vreName, ucdID, projectID, resolveAs);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve geoportal DE.
|
||||
*
|
||||
* @param req the req
|
||||
* @param vreName the vre name
|
||||
* @param ucdID the ucd ID
|
||||
* @param projectID the project ID
|
||||
* @param resolveAs the resolve as
|
||||
* @return the response
|
||||
* @throws WebApplicationException the web application exception
|
||||
*/
|
||||
@GET
|
||||
@Path(GEO_DE+"/{vre_name}/{usecase_id}/{project_id}")
|
||||
public Response resolveGeoportalDE(@Context HttpServletRequest req, @PathParam(PATH_VRE_NAME) String vreName,
|
||||
@PathParam(PATH_USECASE_ID) String ucdID, @PathParam(PATH_PROJECT_ID) String projectID,
|
||||
@QueryParam(QP_RESOLVE_AS) String resolveAs) throws WebApplicationException {
|
||||
String targetAppId = GEO_DE;
|
||||
return genericGet(req, targetAppId, vreName, ucdID, projectID, resolveAs);
|
||||
|
||||
}
|
||||
// /**
|
||||
// * Resolve geoportal DV.
|
||||
// *
|
||||
// * @param req the req
|
||||
// * @param vreName the vre name
|
||||
// * @param ucdID the ucd ID
|
||||
// * @param projectID the project ID
|
||||
// * @param resolveAs the resolve as
|
||||
// * @return the response
|
||||
// * @throws WebApplicationException the web application exception
|
||||
// */
|
||||
// @GET
|
||||
// @Path(GEO_DV + "/{vre_name}/{usecase_id}/{project_id}")
|
||||
// public Response resolveGeoportalDV(@Context HttpServletRequest req, @PathParam(PATH_VRE_NAME) String vreName,
|
||||
// @PathParam(PATH_USECASE_ID) String ucdID, @PathParam(PATH_PROJECT_ID) String projectID,
|
||||
// @QueryParam(QP_RESOLVE_AS) String resolveAs) throws WebApplicationException {
|
||||
// String targetAppId = GEO_DV;
|
||||
// return genericGet(req, targetAppId, vreName, ucdID, projectID, resolveAs);
|
||||
//
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * Resolve geoportal DE.
|
||||
// *
|
||||
// * @param req the req
|
||||
// * @param vreName the vre name
|
||||
// * @param ucdID the ucd ID
|
||||
// * @param projectID the project ID
|
||||
// * @param resolveAs the resolve as
|
||||
// * @return the response
|
||||
// * @throws WebApplicationException the web application exception
|
||||
// */
|
||||
// @GET
|
||||
// @Path(GEO_DE + "/{vre_name}/{usecase_id}/{project_id}")
|
||||
// public Response resolveGeoportalDE(@Context HttpServletRequest req, @PathParam(PATH_VRE_NAME) String vreName,
|
||||
// @PathParam(PATH_USECASE_ID) String ucdID, @PathParam(PATH_PROJECT_ID) String projectID,
|
||||
// @QueryParam(QP_RESOLVE_AS) String resolveAs) throws WebApplicationException {
|
||||
// String targetAppId = GEO_DE;
|
||||
// return genericGet(req, targetAppId, vreName, ucdID, projectID, resolveAs);
|
||||
//
|
||||
// }
|
||||
|
||||
/**
|
||||
* Create a Catalogue Link.
|
||||
|
@ -148,45 +148,48 @@ public class GeoportalResolver {
|
|||
@Path(GEO)
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.TEXT_PLAIN)
|
||||
public Response postGeoportal(@Context HttpServletRequest req, GeoportalRequest jsonRequest) throws WebApplicationException {
|
||||
public Response postGeoportal(@Context HttpServletRequest req, GeoportalRequest jsonRequest)
|
||||
throws WebApplicationException {
|
||||
LOG.info(this.getClass().getSimpleName() + " POST starts...");
|
||||
String targetAppId = GEO;
|
||||
return genericPost(req, jsonRequest, targetAppId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Post geoportal DV.
|
||||
*
|
||||
* @param req the req
|
||||
* @param jsonRequest the json request
|
||||
* @return the response
|
||||
* @throws WebApplicationException the web application exception
|
||||
*/
|
||||
@Path(GEO_DV)
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.TEXT_PLAIN)
|
||||
public Response postGeoportalDV(@Context HttpServletRequest req, GeoportalRequest jsonRequest) throws WebApplicationException {
|
||||
LOG.info(this.getClass().getSimpleName() + " POST starts...");
|
||||
String targetAppId = GEO_DV;
|
||||
return genericPost(req, jsonRequest, targetAppId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Post geoportal DE.
|
||||
*
|
||||
* @param req the req
|
||||
* @param jsonRequest the json request
|
||||
* @return the response
|
||||
* @throws WebApplicationException the web application exception
|
||||
*/
|
||||
@Path(GEO_DE)
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.TEXT_PLAIN)
|
||||
public Response postGeoportalDE(@Context HttpServletRequest req, GeoportalRequest jsonRequest) throws WebApplicationException {
|
||||
LOG.info(this.getClass().getSimpleName() + " POST starts...");
|
||||
String targetAppId = GEO_DE;
|
||||
return genericPost(req, jsonRequest, targetAppId);
|
||||
}
|
||||
// /**
|
||||
// * Post geoportal DV.
|
||||
// *
|
||||
// * @param req the req
|
||||
// * @param jsonRequest the json request
|
||||
// * @return the response
|
||||
// * @throws WebApplicationException the web application exception
|
||||
// */
|
||||
// @Path(GEO_DV)
|
||||
// @Consumes(MediaType.APPLICATION_JSON)
|
||||
// @Produces(MediaType.TEXT_PLAIN)
|
||||
// public Response postGeoportalDV(@Context HttpServletRequest req, GeoportalRequest jsonRequest)
|
||||
// throws WebApplicationException {
|
||||
// LOG.info(this.getClass().getSimpleName() + " POST starts...");
|
||||
// String targetAppId = GEO_DV;
|
||||
// return genericPost(req, jsonRequest, targetAppId);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * Post geoportal DE.
|
||||
// *
|
||||
// * @param req the req
|
||||
// * @param jsonRequest the json request
|
||||
// * @return the response
|
||||
// * @throws WebApplicationException the web application exception
|
||||
// */
|
||||
// @Path(GEO_DE)
|
||||
// @Consumes(MediaType.APPLICATION_JSON)
|
||||
// @Produces(MediaType.TEXT_PLAIN)
|
||||
// public Response postGeoportalDE(@Context HttpServletRequest req, GeoportalRequest jsonRequest)
|
||||
// throws WebApplicationException {
|
||||
// LOG.info(this.getClass().getSimpleName() + " POST starts...");
|
||||
// String targetAppId = GEO_DE;
|
||||
// return genericPost(req, jsonRequest, targetAppId);
|
||||
// }
|
||||
|
||||
/**
|
||||
* Generic get.
|
||||
|
|
Loading…
Reference in New Issue