Fixed Geoportal Get Request.
This commit is contained in:
parent
be8f8755ac
commit
b1e3dc5dbc
|
@ -265,7 +265,7 @@ public class GeoportalResolver {
|
||||||
"Target application is null/malformed. It must be: " + targetApps, this.getClass(), helpURI);
|
"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());
|
jsonRequest.getItemType(), jsonRequest.getItemID());
|
||||||
|
|
||||||
if (jsonRequest.getQueryString() != null) {
|
if (jsonRequest.getQueryString() != null) {
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class BadRequestException extends WebApplicationException {
|
||||||
.message(message).
|
.message(message).
|
||||||
thrownBy(thrownBySource.getName()).build())
|
thrownBy(thrownBySource.getName()).build())
|
||||||
.build())
|
.build())
|
||||||
.type(MediaType.APPLICATION_XML).build());
|
.type(MediaType.APPLICATION_XHTML_XML).build());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -58,7 +58,7 @@ public class ForbiddenRequestException extends WebApplicationException {
|
||||||
.message(message).
|
.message(message).
|
||||||
thrownBy(thrownBySource.getName()).build())
|
thrownBy(thrownBySource.getName()).build())
|
||||||
.build())
|
.build())
|
||||||
.type(MediaType.APPLICATION_XML).build());
|
.type(MediaType.APPLICATION_XHTML_XML).build());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class InternalServerException extends WebApplicationException {
|
||||||
.message(message).
|
.message(message).
|
||||||
thrownBy(thrownBySource.getName()).build())
|
thrownBy(thrownBySource.getName()).build())
|
||||||
.build())
|
.build())
|
||||||
.type(MediaType.APPLICATION_XML).build());
|
.type(MediaType.APPLICATION_XHTML_XML).build());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -56,7 +56,7 @@ public class NotAuthorizedRequestException extends WebApplicationException {
|
||||||
.message(message).
|
.message(message).
|
||||||
thrownBy(thrownBySource.getName()).build())
|
thrownBy(thrownBySource.getName()).build())
|
||||||
.build())
|
.build())
|
||||||
.type(MediaType.APPLICATION_XML).build());
|
.type(MediaType.APPLICATION_XHTML_XML).build());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ public class NotFoundException extends WebApplicationException {
|
||||||
.message(message).
|
.message(message).
|
||||||
thrownBy(thrownBySource.getName()).build())
|
thrownBy(thrownBySource.getName()).build())
|
||||||
.build())
|
.build())
|
||||||
.type(MediaType.APPLICATION_XML).build());
|
.type(MediaType.APPLICATION_XHTML_XML).build());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class WrongParameterException extends WebApplicationException {
|
||||||
.message(message).
|
.message(message).
|
||||||
thrownBy(thrownBySource.getName()).build())
|
thrownBy(thrownBySource.getName()).build())
|
||||||
.build())
|
.build())
|
||||||
.type(MediaType.APPLICATION_XML).build());
|
.type(MediaType.APPLICATION_XHTML_XML).build());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue