throws HandlerException {
if (log.isDebugEnabled()) {
log.debug("starting getBestHandlerChain at "
+ System.currentTimeMillis());
}
EnhancedRequest ehRequest = new EnhancedRequest(request);
Iterator<AcceptHeaderEntry> acceptIter = ehRequest.getAccept();
HandlerChainImpl currentBestChain = null;
/*
* Resource requestedResource = model.getResource(ehRequest
* .getFullRequestURL().toString());
*/
Resource requestedResource = model.getResource(ehRequest
.getRequestURLWithoutParams().toString());
if (!acceptIter.hasNext()) {
currentBestChain = getHandlerChain(request, new AcceptHeaderEntry(
defaultMediaRange, 1), requestedResource,
authorizationInfo, ignoreAuthorization);