public void redirect ( final String location ) { // set the header AND a meta refresh just in case response ( ) . headers ( ) . set ( "Location" , location ) ; sendReply ( HttpResponseStatus . OK , new StringBuilder ( "<html></head><meta http-equiv=\"refresh\" content=\"0; url=" + location + "\"></head></html>" ) . toString ( ) . getBytes ( this . getCharset ( ) ) ) ; }
Redirects the client s browser to the given location .