org.apache.cocoon.environment
Class ForwardRedirector

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.environment.ForwardRedirector
All Implemented Interfaces:
org.apache.avalon.framework.logger.Loggable, Redirector

public class ForwardRedirector
extends org.apache.avalon.framework.logger.AbstractLoggable
implements Redirector

A Redirector that handles forward redirects, i.e. internal redirects using the "cocoon:" pseudo-protocol.

Version:
CVS $Id: ForwardRedirector.java,v 1.1 2002/03/28 08:45:10 sylvain Exp $
Author:
Sylvain Wallez

Constructor Summary
ForwardRedirector(Environment env, Processor processor, org.apache.avalon.framework.component.ComponentManager manager, EventPipeline eventPipe, StreamPipeline streamPipe)
           
 
Method Summary
 void globalRedirect(boolean sessionMode, java.lang.String url)
          Inconditionnaly redirects to a given URL, even it this redirector is part of a subpipeline.
 boolean hasRedirected()
          Perform check on whether redirection has occured or not
 void redirect(boolean sessionMode, java.lang.String url)
          Redirects to a given URL.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardRedirector

public ForwardRedirector(Environment env,
                         Processor processor,
                         org.apache.avalon.framework.component.ComponentManager manager,
                         EventPipeline eventPipe,
                         StreamPipeline streamPipe)
Method Detail

redirect

public void redirect(boolean sessionMode,
                     java.lang.String url)
              throws java.io.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.
Specified by:
redirect in interface Redirector

globalRedirect

public void globalRedirect(boolean sessionMode,
                           java.lang.String url)
                    throws java.io.IOException,
                           ProcessingException
Inconditionnaly redirects to a given URL, even it this redirector is part of a subpipeline.
Specified by:
globalRedirect in interface Redirector

hasRedirected

public boolean hasRedirected()
Perform check on whether redirection has occured or not
Specified by:
hasRedirected in interface Redirector


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.