org.apache.cocoon.environment
Interface Redirector

All Known Implementing Classes:
ForwardRedirector

public interface Redirector

Interface for an redirector abstraction

Version:
CVS $Id: Redirector.java 30941 2004-07-29 19:56:58Z vgritsenko $
Author:
Davanum Srinivas

Method Summary
 void globalRedirect(boolean sessionmode, String url)
           
 boolean hasRedirected()
          Was one of the redirection methods called ?
 void redirect(boolean sessionmode, String url)
          Redirect to the given URL
 void sendStatus(int sc)
          Send a content-less response with the given status code.
 

Method Detail

redirect

public void redirect(boolean sessionmode,
                     String url)
              throws IOException,
                     ProcessingException
Redirect to the given URL

Throws:
IOException
ProcessingException

globalRedirect

public void globalRedirect(boolean sessionmode,
                           String url)
                    throws IOException,
                           ProcessingException
Throws:
IOException
ProcessingException

hasRedirected

public boolean hasRedirected()
Was one of the redirection methods called ?


sendStatus

public void sendStatus(int sc)
Send a content-less response with the given status code.

Parameters:
sc - an http status code.


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.