String urlkey = null;
// If no canonicalizer is set, use selfRedirFilter's canonicalizer
// Either selfRedirFilter or a canonicalizer must be set
UrlCanonicalizer canon = getCanonicalizer();
if (canon == null && selfRedirFilter != null) {
canon = selfRedirFilter.getCanonicalizer();
}
if (canon == null) {
throw new IllegalArgumentException("Unable to find canonicalizer, canonicalizer property or selfRedirFilter property must be set");
}
try {
urlkey = canon.urlStringToKey(wbRequest.getRequestUrl());
} catch (URIException ue) {
throw new BadQueryException(ue.toString());
}
//Do local access/url validation check