*/
protected static void validateURI(String uri, String path, Map<String, String> parameters)
throws ResolveEndpointFailedException {
// check for uri containing & but no ? marker
if (uri.contains("&") && !uri.contains("?")) {
throw new ResolveEndpointFailedException(
uri,
"Invalid uri syntax: no ? marker however the uri "
+ "has & parameter separators. "
+ "Check the uri if its missing a ? marker.");
}
// check for uri containing double && markers
if (uri.contains("&&")) {
throw new ResolveEndpointFailedException(uri,
"Invalid uri syntax: Double && marker found. "
+ "Check the uri and remove the "
+ "duplicate & marker.");
}
}