task_24792 #7
|
@ -46,7 +46,7 @@ import com.google.common.cache.CacheLoader.InvalidCacheLoadException;
|
|||
*
|
||||
* Mar 23, 2023
|
||||
*/
|
||||
@Path("{targetAppId:geo(-(dv|-de))?}")
|
||||
@Path("{targetAppId:geo(-(dv|de))?}")
|
||||
public class GeoportalResolver {
|
||||
|
||||
private static final String QP_RESOLVE_AS = "res";
|
||||
|
@ -313,7 +313,7 @@ public class GeoportalResolver {
|
|||
linkURL += "?" + jsonRequest.getQueryString();
|
||||
}
|
||||
|
||||
LOG.info("Returning " + CatalogueResolver.class.getSimpleName() + " URL: " + linkURL);
|
||||
LOG.info("Returning " + GeoportalResolver.class.getSimpleName() + " URL: " + linkURL);
|
||||
return Response.ok(linkURL).header("Location", linkURL).build();
|
||||
|
||||
} catch (Exception e) {
|
||||
|
|
|
@ -55,7 +55,7 @@ public class BadRequestException extends WebApplicationException {
|
|||
.message(message).
|
||||
thrownBy(thrownBySource.getName()).build())
|
||||
.build())
|
||||
.type(MediaType.APPLICATION_XHTML_XML).build());
|
||||
.type(MediaType.APPLICATION_XML).build());
|
||||
|
||||
}
|
||||
}
|
|
@ -58,7 +58,7 @@ public class ForbiddenRequestException extends WebApplicationException {
|
|||
.message(message).
|
||||
thrownBy(thrownBySource.getName()).build())
|
||||
.build())
|
||||
.type(MediaType.APPLICATION_XHTML_XML).build());
|
||||
.type(MediaType.APPLICATION_XML).build());
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ public class InternalServerException extends WebApplicationException {
|
|||
.message(message).
|
||||
thrownBy(thrownBySource.getName()).build())
|
||||
.build())
|
||||
.type(MediaType.APPLICATION_XHTML_XML).build());
|
||||
.type(MediaType.APPLICATION_XML).build());
|
||||
|
||||
}
|
||||
}
|
|
@ -56,7 +56,7 @@ public class NotAuthorizedRequestException extends WebApplicationException {
|
|||
.message(message).
|
||||
thrownBy(thrownBySource.getName()).build())
|
||||
.build())
|
||||
.type(MediaType.APPLICATION_XHTML_XML).build());
|
||||
.type(MediaType.APPLICATION_XML).build());
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ public class NotFoundException extends WebApplicationException {
|
|||
.message(message).
|
||||
thrownBy(thrownBySource.getName()).build())
|
||||
.build())
|
||||
.type(MediaType.APPLICATION_XHTML_XML).build());
|
||||
.type(MediaType.APPLICATION_XML).build());
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ public class WrongParameterException extends WebApplicationException {
|
|||
.message(message).
|
||||
thrownBy(thrownBySource.getName()).build())
|
||||
.build())
|
||||
.type(MediaType.APPLICATION_XHTML_XML).build());
|
||||
.type(MediaType.APPLICATION_XML).build());
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue