|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.util.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 org.apache.cocoon.environment.Environment |
env
The Environment to use for redirection (either internal or external) |
Constructor Summary | |
ForwardRedirector(org.apache.cocoon.environment.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()
|
void |
permanentRedirect(boolean sessionMode,
String url)
|
void |
redirect(boolean sessionMode,
String url)
Redirects to a given URL. |
void |
sendStatus(int sc)
|
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.cocoon.environment.Environment env
Environment to use for redirection (either internal or external)
Constructor Detail |
public ForwardRedirector(org.apache.cocoon.environment.Environment env)
Method Detail |
public void redirect(boolean sessionMode, String url) throws IOException, org.apache.cocoon.ProcessingException
redirect
in interface org.apache.cocoon.environment.Redirector
IOException
org.apache.cocoon.ProcessingException
public void permanentRedirect(boolean sessionMode, String url) throws IOException, org.apache.cocoon.ProcessingException
permanentRedirect
in interface org.apache.cocoon.environment.PermanentRedirector
IOException
org.apache.cocoon.ProcessingException
public void globalRedirect(boolean sessionMode, String url) throws IOException, org.apache.cocoon.ProcessingException
globalRedirect
in interface org.apache.cocoon.environment.Redirector
IOException
org.apache.cocoon.ProcessingException
protected abstract void cocoonRedirect(String uri) throws IOException, org.apache.cocoon.ProcessingException
IOException
org.apache.cocoon.ProcessingException
public boolean hasRedirected()
hasRedirected
in interface org.apache.cocoon.environment.Redirector
public void sendStatus(int sc)
sendStatus
in interface org.apache.cocoon.environment.Redirector
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 |