sunlabs.brazil.template

Class RedirectTemplate

public class RedirectTemplate extends Template

[Deprecated, use the AddHeaderTemplate instead.]
Template class for redirecting an html page This class is used by the TemplateHandler

Version: @(#)RedirectTemplate.java 2.1

Author: Stephen Uhler

Method Summary
booleandone(RewriteContext hr)
adjust the response headers to reflect redirection, if supplied.
voidredirect(RewriteContext hr)
Look for a redirect tag, change it to an HREF, and remember where to redirect to (e.g.

Method Detail

done

public boolean done(RewriteContext hr)
adjust the response headers to reflect redirection, if supplied. Otherwise, ignore this request.

redirect

public void redirect(RewriteContext hr)
Look for a redirect tag, change it to an HREF, and remember where to redirect to (e.g. <redirect http://some.where.com>)