Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » environment » [javadoc | source]
org.apache.cocoon.environment
abstract public class: ForwardRedirector [javadoc | source]
java.lang.Object
   org.apache.avalon.framework.logger.AbstractLogEnabled
      org.apache.cocoon.environment.ForwardRedirector

All Implemented Interfaces:
    Redirector, PermanentRedirector

Direct Known Subclasses:
    TreeProcessorRedirector

A base class for Redirectors that handle forward redirects, i.e. internal redirects using the "cocoon:" pseudo-protocol.

Concrete subclasses have to define the cocoonRedirect() method.

Field Summary
protected  Environment env    The Environment to use for redirection (either internal or external) 
Constructor:
 public ForwardRedirector(Environment env) 
Method from org.apache.cocoon.environment.ForwardRedirector Summary:
cocoonRedirect,   globalRedirect,   hasRedirected,   permanentRedirect,   redirect,   sendStatus
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.environment.ForwardRedirector Detail:
 abstract protected  void cocoonRedirect(String uri) throws IOException, ProcessingException
 public  void globalRedirect(boolean sessionMode,
    String url) throws IOException, ProcessingException 
    Unconditionally redirects to a given URL, even it this redirector is part of a subpipeline.
 public boolean hasRedirected() 
    Perform check on whether redirection has occured or not
 public  void permanentRedirect(boolean sessionMode,
    String url) throws IOException, ProcessingException 
 public  void redirect(boolean sessionMode,
    String url) throws IOException, ProcessingException 
    Redirects to a given URL. If this URL starts with "cocoon:", then an internal redirect is performed. Otherwise, an external redirect is send to the environment.
 public  void sendStatus(int sc)