|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.environment.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)
Constructor |
Method Summary | |
protected abstract void |
cocoonRedirect(String uri)
|
protected void |
doRedirect(boolean sessionmode,
String newURL,
boolean permanent,
boolean global)
Redirect the client to new URL with session mode |
void |
globalRedirect(boolean sessionMode,
String url)
Unconditionally redirects to a given URL, even it this redirector is part of a subpipeline. |
boolean |
hasRedirected()
Was one of the redirection methods called ? |
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()
Redirector
hasRedirected
in interface Redirector
public void sendStatus(int sc)
Redirector
sendStatus
in interface Redirector
sc
- an http status code.protected void doRedirect(boolean sessionmode, String newURL, boolean permanent, boolean global) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |