org.apache.cocoon.environment
Interface Redirector


public interface Redirector

Interface for an redirector abstraction

Version:
$Id: Redirector.html 1304280 2012-03-23 11:18:01Z ilgrosso $

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-2008 The Apache Software Foundation. All Rights Reserved.