public void sendRedirect(String location)
throws IOException, IllegalArgumentException
{
if (location == null) {
String msg = sm.getString("hsrf.redirect.iae");
throw new IllegalArgumentException(msg);
}
// Even though DefaultErrorServlet will convert this
// location to absolute (if required) we should do so
// here in case the app has a non-default handler