Fixed Geoportal Get Request.

This commit is contained in:
Francesco Mangiacrapa 2023-03-23 16:52:08 +01:00
parent be8f8755ac
commit b1e3dc5dbc
7 changed files with 7 additions and 7 deletions

View File

@ -265,7 +265,7 @@ public class GeoportalResolver {
"Target application is null/malformed. It must be: " + targetApps, this.getClass(), helpURI);
}
String linkURL = String.format("%s/%s/%s/%s%s", serverUrl, resoruceGeoportalCodes.getId(), vreName,
String linkURL = String.format("%s/%s/%s/%s/%s", serverUrl, resoruceGeoportalCodes.getId(), vreName,
jsonRequest.getItemType(), jsonRequest.getItemID());
if (jsonRequest.getQueryString() != null) {

View File

@ -55,7 +55,7 @@ public class BadRequestException extends WebApplicationException {
.message(message).
thrownBy(thrownBySource.getName()).build())
.build())
.type(MediaType.APPLICATION_XML).build());
.type(MediaType.APPLICATION_XHTML_XML).build());
}
}

View File

@ -58,7 +58,7 @@ public class ForbiddenRequestException extends WebApplicationException {
.message(message).
thrownBy(thrownBySource.getName()).build())
.build())
.type(MediaType.APPLICATION_XML).build());
.type(MediaType.APPLICATION_XHTML_XML).build());
}

View File

@ -53,7 +53,7 @@ public class InternalServerException extends WebApplicationException {
.message(message).
thrownBy(thrownBySource.getName()).build())
.build())
.type(MediaType.APPLICATION_XML).build());
.type(MediaType.APPLICATION_XHTML_XML).build());
}
}

View File

@ -56,7 +56,7 @@ public class NotAuthorizedRequestException extends WebApplicationException {
.message(message).
thrownBy(thrownBySource.getName()).build())
.build())
.type(MediaType.APPLICATION_XML).build());
.type(MediaType.APPLICATION_XHTML_XML).build());
}

View File

@ -56,7 +56,7 @@ public class NotFoundException extends WebApplicationException {
.message(message).
thrownBy(thrownBySource.getName()).build())
.build())
.type(MediaType.APPLICATION_XML).build());
.type(MediaType.APPLICATION_XHTML_XML).build());
}

View File

@ -55,7 +55,7 @@ public class WrongParameterException extends WebApplicationException {
.message(message).
thrownBy(thrownBySource.getName()).build())
.build())
.type(MediaType.APPLICATION_XML).build());
.type(MediaType.APPLICATION_XHTML_XML).build());
}
}