request.removeAttribute(WebloungeRequest.URL);
// Ask registered listeners whether they want to redirect the url.
// TODO: Are DispatchListeners still used?
for (int i = 0; i < dispatcher.size(); i++) {
DispatchListener d = dispatcher.get(i);
url = d.redirect(url, request, response);
}
// Ask registered listeners whether they are willing to do the work for us
for (int i = 0; i < dispatcher.size(); i++) {
DispatchListener d = dispatcher.get(i);
if (d.forward(request, response, url))
return;
}
// If we get here, then no dispatcher seems to be responsible for handling
// the request.