sunlabs.brazil.template
Class RedirectTemplate

java.lang.Object
  extended by sunlabs.brazil.template.Template
      extended by sunlabs.brazil.template.RedirectTemplate (view source)
All Implemented Interfaces:
TemplateInterface

public class RedirectTemplate
extends Template

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


Field Summary
 
Fields inherited from class sunlabs.brazil.template.Template
debug
 
Constructor Summary
RedirectTemplate()
           
 
Method Summary
 boolean done(RewriteContext hr)
          adjust the response headers to reflect redirection, if supplied.
 void redirect(RewriteContext hr)
          Look for a redirect tag, change it to an HREF, and remember where to redirect to (e.g.
 
Methods inherited from class sunlabs.brazil.template.Template
init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedirectTemplate

public RedirectTemplate()
Method Detail

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>)


done

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

Specified by:
done in interface TemplateInterface
Overrides:
done in class Template

Version Kenai-svn-r24, Generated 08/18/09
Copyright (c) 2001-2009, Sun Microsystems.