updated bad request message
This commit is contained in:
parent
3edd9b81de
commit
29fd3428c5
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -20,7 +21,8 @@
|
|||
|
||||
|
||||
<wb-module deploy-name="uri-resolver-2.10.0-SNAPSHOT">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -41,7 +43,8 @@
|
|||
|
||||
|
||||
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -62,7 +65,8 @@
|
|||
|
||||
|
||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -83,7 +87,8 @@
|
|||
|
||||
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -104,7 +109,11 @@
|
|||
|
||||
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||
|
||||
<dependent-module archiveName="uri-resolver-manager-1.8.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/uri-resolver-manager/uri-resolver-manager">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -125,7 +134,8 @@
|
|||
|
||||
|
||||
<property name="context-root" value="uri-resolver"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -146,7 +156,8 @@
|
|||
|
||||
|
||||
<property name="java-output-path" value="/uri-resolver/target/classes"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -167,7 +178,8 @@
|
|||
|
||||
|
||||
</wb-module>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -230,8 +230,10 @@ public class GeoportalResolver {
|
|||
LOG.error("Target application parameter is malformed");
|
||||
List<String> targetApps = Arrays.asList(TargetAppGeoportalCodes.values()).stream()
|
||||
.map(TargetAppGeoportalCodes::getTarget_app).collect(Collectors.toList());
|
||||
List<String> targetPaths = Arrays.asList(TargetAppGeoportalCodes.values()).stream()
|
||||
.map(TargetAppGeoportalCodes::getId).collect(Collectors.toList());
|
||||
throw ExceptionManager.badRequestException(req,
|
||||
"Target application is wrong. It must be one value of: " + targetApps, this.getClass(),
|
||||
"Target application is wrong. Add a target path as /"+targetPaths+"+ values of the applications: " + targetApps, this.getClass(),
|
||||
helpURI);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue