|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.environment.ForwardRedirector
public abstract class ForwardRedirector
A base class for Redirector
s 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 Summary | |
---|---|
ForwardRedirector(Environment env)
|
Method Summary | |
---|---|
protected abstract void |
cocoonRedirect(String uri)
|
void |
globalRedirect(boolean sessionMode,
String url)
Unconditionally 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 |
permanentRedirect(boolean sessionMode,
String url)
Redirect to the given URL |
void |
redirect(boolean sessionMode,
String url)
Redirects to a given URL. |
void |
sendStatus(int sc)
Send a content-less response with the given status code. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Environment env
Environment to use for redirection (either internal or external)
Constructor Detail |
---|
public ForwardRedirector(Environment env)
Method Detail |
---|
public void redirect(boolean sessionMode, String url) throws IOException, ProcessingException
redirect
in interface Redirector
IOException
ProcessingException
public void permanentRedirect(boolean sessionMode, String url) throws IOException, ProcessingException
PermanentRedirector
permanentRedirect
in interface PermanentRedirector
IOException
ProcessingException
public void globalRedirect(boolean sessionMode, String url) throws IOException, ProcessingException
globalRedirect
in interface Redirector
IOException
ProcessingException
protected abstract void cocoonRedirect(String uri) throws IOException, ProcessingException
IOException
ProcessingException
public boolean hasRedirected()
hasRedirected
in interface Redirector
public void sendStatus(int sc)
Redirector
sendStatus
in interface Redirector
sc
- an http status code.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |