updated paths
This commit is contained in:
parent
ad9bd54412
commit
5ca0406997
|
@ -46,7 +46,7 @@ import com.google.common.cache.CacheLoader.InvalidCacheLoadException;
|
||||||
*
|
*
|
||||||
* Mar 23, 2023
|
* Mar 23, 2023
|
||||||
*/
|
*/
|
||||||
@Path("{targetAppId:geo|geo-dv|geo-de}")
|
@Path("/")
|
||||||
public class GeoportalResolver {
|
public class GeoportalResolver {
|
||||||
|
|
||||||
private static final String QP_RESOLVE_AS = "res";
|
private static final String QP_RESOLVE_AS = "res";
|
||||||
|
@ -62,7 +62,7 @@ public class GeoportalResolver {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/{vre_name}/{usecase_id}/{project_id}")
|
@Path("{targetAppId:geo|geo-dv|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)
|
||||||
|
@ -230,7 +230,7 @@ public class GeoportalResolver {
|
||||||
* @throws WebApplicationException the web application exception
|
* @throws WebApplicationException the web application exception
|
||||||
*/
|
*/
|
||||||
@POST
|
@POST
|
||||||
@Path("")
|
@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, GeoportalRequest jsonRequest,
|
public Response postGeoportal(@Context HttpServletRequest req, GeoportalRequest jsonRequest,
|
||||||
|
@ -292,7 +292,7 @@ public class GeoportalResolver {
|
||||||
//Checking the application towards redirect according the PATH
|
//Checking the application towards redirect according the PATH
|
||||||
switch (targetAppGeoportalCodes) {
|
switch (targetAppGeoportalCodes) {
|
||||||
case GEO: {
|
case GEO: {
|
||||||
|
LOG.debug("With "+targetAppId+" checking the JSON body passed in the request...");
|
||||||
//If the PATH is /geo going to check the target_app_name parameter in the request
|
//If the PATH is /geo going to check the target_app_name parameter in the request
|
||||||
String targetAppName = jsonRequest.getTargetAppName();
|
String targetAppName = jsonRequest.getTargetAppName();
|
||||||
|
|
||||||
|
@ -317,7 +317,7 @@ public class GeoportalResolver {
|
||||||
}
|
}
|
||||||
case GEO_DV:
|
case GEO_DV:
|
||||||
case GEO_DE: {
|
case GEO_DE: {
|
||||||
LOG.info("Do nothing");
|
LOG.debug("With "+targetAppId+" do nothing");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue