ovidiu 02/04/09 17:32:19 Modified: src/scratchpad/schecoon/src/org/apache/cocoon/components/flow AbstractInterpreter.java Log: Removed processPipeline(). Automatically add "cocoon:/" to the uri in forwardTo(). Revision Changes Path 1.6 +2 -31 xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/AbstractInterpreter.java Index: AbstractInterpreter.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/AbstractInterpreter.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- AbstractInterpreter.java 2 Apr 2002 04:58:54 -0000 1.5 +++ AbstractInterpreter.java 10 Apr 2002 00:32:19 -0000 1.6 @@ -213,36 +213,6 @@ lastTimeCheck = System.currentTimeMillis(); } - public void processPipeline(String name, Map pipelineArgs, Object bizData, - WebContinuation continuation, - Environment environment, InvokeContext ctx) - throws Exception - { - if (ctx == null) { - String msg = "Cannot invoke pipeline with a null InvokeContext! Make sure" - + " you're calling the pipeline during the execution of a request."; - throw new RuntimeException(msg); - } - - environment.setAttribute("bean-dict", bizData); - environment.setAttribute("kont", continuation); - - ProcessingNode pipeline - = resources.getNodeByName(MapStackResolver.unescape(name)); - - if (pipelineArgs != null) - ctx.pushMap(pipelineArgs); - try { - pipeline.invoke(environment, ctx); - } - finally { - environment.removeAttribute("bean-dict"); - environment.removeAttribute("kont"); - if (pipelineArgs != null) - ctx.popMap(); - } - } - public void forwardTo(String uri, Object bizData, WebContinuation continuation, Environment environment, InvokeContext ctx) @@ -258,7 +228,8 @@ environment.setAttribute("kont", continuation); try { - PipelinesNode.getRedirector(environment).redirect(false, uri); + PipelinesNode.getRedirector(environment) + .redirect(false, "cocoon:/" + uri); } finally { environment.removeAttribute("bean-dict");
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]