Updated Paths
This commit is contained in:
parent
0b7ca3d03f
commit
0b23748a3b
|
@ -49,9 +49,9 @@ import com.google.common.cache.CacheLoader.InvalidCacheLoadException;
|
|||
@Path("/")
|
||||
public class GeoportalResolver {
|
||||
|
||||
public static final String GEO_DE = "geo-de";
|
||||
public static final String GEO_DE = "geode";
|
||||
public static final String GEO = "geo";
|
||||
public static final String GEO_DV = "geo-dv";
|
||||
public static final String GEO_DV = "geodv";
|
||||
|
||||
private static final String QP_RESOLVE_AS = "res";
|
||||
private static final String PATH_PROJECT_ID = "project_id";
|
||||
|
@ -77,6 +77,7 @@ public class GeoportalResolver {
|
|||
* Resolve geoportal.
|
||||
*
|
||||
* @param req the req
|
||||
* @param targetAppId the target app id
|
||||
* @param vreName the vre name
|
||||
* @param ucdID the ucd ID
|
||||
* @param projectID the project ID
|
||||
|
@ -95,26 +96,26 @@ 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 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.
|
||||
|
@ -146,13 +147,13 @@ public class GeoportalResolver {
|
|||
* @throws WebApplicationException the web application exception
|
||||
*/
|
||||
@POST
|
||||
@Path(GEO)
|
||||
@Path("{targetAppId:" + GEO + "|" + GEO_DV + "|" + GEO_DE + "}")
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.TEXT_PLAIN)
|
||||
public Response postGeoportal(@Context HttpServletRequest req, GeoportalRequest jsonRequest)
|
||||
public Response postGeoportal(@Context HttpServletRequest req, @PathParam(PATH_TARGET_APP) String targetAppId, GeoportalRequest jsonRequest)
|
||||
throws WebApplicationException {
|
||||
LOG.info(this.getClass().getSimpleName() + " POST starts...");
|
||||
String targetAppId = GEO;
|
||||
//String targetAppId = GEO;
|
||||
return genericPost(req, jsonRequest, targetAppId);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue