task_24792 #7
|
@ -46,7 +46,7 @@ import com.google.common.cache.CacheLoader.InvalidCacheLoadException;
|
||||||
*
|
*
|
||||||
* Mar 23, 2023
|
* Mar 23, 2023
|
||||||
*/
|
*/
|
||||||
@Path("/")
|
//@Path("/")
|
||||||
public class GeoportalResolver {
|
public class GeoportalResolver {
|
||||||
|
|
||||||
public static final String GEO_DE = "geode";
|
public static final String GEO_DE = "geode";
|
||||||
|
@ -84,9 +84,10 @@ public class GeoportalResolver {
|
||||||
* @param resolveAs the resolve as
|
* @param resolveAs the resolve as
|
||||||
* @return the response
|
* @return the response
|
||||||
* @throws WebApplicationException the web application exception
|
* @throws WebApplicationException the web application exception
|
||||||
|
* @Path("/{targetAppId:" + GEO + "|" + GEO_DV + "|" + GEO_DE + "}" + "/{vre_name}/{usecase_id}/{project_id}")
|
||||||
*/
|
*/
|
||||||
@GET
|
@GET
|
||||||
@Path("/{targetAppId:" + GEO + "|" + GEO_DV + "|" + GEO_DE + "}" + "/{vre_name}/{usecase_id}/{project_id}")
|
@Path("/"+GEO_DE + "/{vre_name}/{usecase_id}/{project_id}")
|
||||||
public Response resolveGeoportal(@Context HttpServletRequest req, @PathParam(PATH_TARGET_APP) String targetAppId,
|
public Response resolveGeoportal(@Context HttpServletRequest req, @PathParam(PATH_TARGET_APP) String targetAppId,
|
||||||
@PathParam(PATH_VRE_NAME) String vreName, @PathParam(PATH_USECASE_ID) String ucdID,
|
@PathParam(PATH_VRE_NAME) String vreName, @PathParam(PATH_USECASE_ID) String ucdID,
|
||||||
@PathParam(PATH_PROJECT_ID) String projectID, @QueryParam(QP_RESOLVE_AS) String resolveAs)
|
@PathParam(PATH_PROJECT_ID) String projectID, @QueryParam(QP_RESOLVE_AS) String resolveAs)
|
||||||
|
@ -95,6 +96,8 @@ public class GeoportalResolver {
|
||||||
return genericGet(req, targetAppId, vreName, ucdID, projectID, resolveAs);
|
return genericGet(req, targetAppId, vreName, ucdID, projectID, resolveAs);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resolve geoportal DV.
|
* Resolve geoportal DV.
|
||||||
|
@ -147,7 +150,7 @@ public class GeoportalResolver {
|
||||||
* @throws WebApplicationException the web application exception
|
* @throws WebApplicationException the web application exception
|
||||||
*/
|
*/
|
||||||
@POST
|
@POST
|
||||||
@Path("{targetAppId:" + GEO + "|" + GEO_DV + "|" + GEO_DE + "}")
|
@Path("/{targetAppId:" + GEO + "|" + GEO_DV + "|" + GEO_DE + "}")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@Produces(MediaType.TEXT_PLAIN)
|
@Produces(MediaType.TEXT_PLAIN)
|
||||||
public Response postGeoportal(@Context HttpServletRequest req, @PathParam(PATH_TARGET_APP) String targetAppId, GeoportalRequest jsonRequest)
|
public Response postGeoportal(@Context HttpServletRequest req, @PathParam(PATH_TARGET_APP) String targetAppId, GeoportalRequest jsonRequest)
|
||||||
|
|
Loading…
Reference in New Issue