org.apache.cocoon.environment
Interface Redirector

All Known Implementing Classes:
AbstractCommandLineEnvironment, FileSavingEnvironment, ForwardRedirector, HttpEnvironment, LinkSamplingEnvironment, PortletEnvironment, SitemapRedirector

public interface Redirector

Interface for an redirector abstraction

Version:
CVS $Id: Redirector.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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

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

Throws:
IOException
ProcessingException

globalRedirect

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

hasRedirected

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


sendStatus

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

Parameters:
sc - an http status code.


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.