Package sunlabs.brazil.template
Class RedirectTemplate
java.lang.Object
sunlabs.brazil.template.Template
sunlabs.brazil.template.RedirectTemplate
- All Implemented Interfaces:
TemplateInterface
[Deprecated, use the AddHeaderTemplate instead.]
Template class for redirecting an html page This class is used by the TemplateHandler
Template class for redirecting an html page This class is used by the TemplateHandler
- Version:
- @(#)RedirectTemplate.java 2.1
- Author:
- Stephen Uhler
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
done
(RewriteContext hr) adjust the response headers to reflect redirection, if supplied.void
Look for a redirect tag, change it to an HREF, and remember where to redirect to (e.g.
-
Constructor Details
-
RedirectTemplate
public RedirectTemplate()
-
-
Method Details
-
redirect
Look for a redirect tag, change it to an HREF, and remember where to redirect to (e.g.<redirect http://some.where.com>)
-
done
adjust the response headers to reflect redirection, if supplied. Otherwise, ignore this request.- Specified by:
done
in interfaceTemplateInterface
- Overrides:
done
in classTemplate
-