org.cdlib.xtf.saxonExt
Class Redirect

Object
  extended by Redirect
All Implemented Interfaces:
ExtensionElementFactory

public class Redirect
extends Object
implements ExtensionElementFactory

Implements the "Redirect" Saxon extension, which allows stylesheets to force an immediate HTTP redirect to a different URL. This extension should be used prior to generating any output; otherwise an exception will be thrown.

Author:
Martin Haye

Constructor Summary
Redirect()
           
 
Method Summary
 Class getExtensionClass(String localname)
          Identify the class to be used for stylesheet elements with a given local name.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Redirect

public Redirect()
Method Detail

getExtensionClass

public Class getExtensionClass(String localname)
Identify the class to be used for stylesheet elements with a given local name. The returned class must extend net.sf.saxon.style.StyleElement

Specified by:
getExtensionClass in interface ExtensionElementFactory
Returns:
null if the local name is not a recognised element type in this namespace.