sylvain 2004/01/18 14:27:26
Modified: src/java/org/apache/cocoon/environment
ForwardRedirector.java
Log:
Internal redirects "cocoon:" are now processed immediately (previously,
redirecting was only setting a flag handled at the end of the tree processing)
Revision Changes Path
1.11 +3 -3
cocoon-2.1/src/java/org/apache/cocoon/environment/ForwardRedirector.java
Index: ForwardRedirector.java
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/java/org/apache/cocoon/environment/ForwardRedirector.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ForwardRedirector.java 14 Nov 2003 18:57:43 -0000 1.10
+++ ForwardRedirector.java 18 Jan 2004 22:27:26 -0000 1.11
@@ -72,7 +72,7 @@
private boolean hasRedirected = false;
/** The <code>Environment to use for redirection (either internal or
external) */
- private Environment env;
+ protected Environment env;
public ForwardRedirector(Environment env) {
this.env = env;
@@ -133,7 +133,7 @@
this.hasRedirected = true;
}
- private void cocoonRedirect(String uri) {
+ protected void cocoonRedirect(String uri) throws IOException,
ProcessingException {
// Simply notify the Processor.
this.env.setAttribute(TreeProcessor.COCOON_REDIRECT_ATTR, uri);
}