Examples of EnvironmentStack


Examples of org.apache.cocoon.components.EnvironmentStack

            CocoonComponentManager.endProcessing(environment, key);
            if (this.getLogger().isDebugEnabled()) {
                --activeRequestCount;
            }
            // TODO (CZ): This is only for testing - remove it later on
            EnvironmentStack stack = CocoonComponentManager.getCurrentEnvironmentStack();
            if (stack != null && !stack.isEmpty() ) {
                this.getLogger().error("ENVIRONMENT STACK HAS NOT BEEN CLEANED PROPERLY");       
            }
        }
    }
View Full Code Here

Examples of org.apache.cocoon.components.EnvironmentStack

            this.environment.changeToLastContext();

            String redirectURL = this.environment.getRedirectURL();
            if (redirectURL == null) {

                EnvironmentStack envStack = CocoonComponentManager.getCurrentEnvironmentStack();
                int currentOffset = envStack.getOffset();
                try {
                    CocoonComponentManager.enterEnvironment(this.environment,
                                                            this.manager,
                                                            this.pipelineProcessor);
                    this.processingPipeline.prepareInternal(this.environment);
                    this.sourceValidity = this.processingPipeline.getValidityForEventPipeline();
                } finally {
                    CocoonComponentManager.leaveEnvironment();
                    envStack.resetOffset(currentOffset);
                }
            } else {
                if (redirectURL.indexOf(":") == -1) {
                    redirectURL = this.protocol + ":/" + redirectURL;
                }
View Full Code Here

Examples of org.apache.cocoon.components.EnvironmentStack

              } else {
                  consumer = new ContentHandlerWrapper(contentHandler);
              }
                // We have to add an environment changer
                // clean environment stack handling.
                EnvironmentStack envStack = CocoonComponentManager.getCurrentEnvironmentStack();
                int currentOffset = envStack.getOffset();
                try {
                    CocoonComponentManager.enterEnvironment(this.environment,
                                                            this.manager,
                                                            this.pipelineProcessor);
                    this.processingPipeline.process(this.environment, new EnvironmentChanger(consumer, envStack));
                } finally {
                    CocoonComponentManager.leaveEnvironment();
                    envStack.resetOffset(currentOffset);
                }
            }
        } catch (SAXException e) {
            // Preserve original exception
            throw e;
View Full Code Here

Examples of org.apache.cocoon.components.EnvironmentStack

            CocoonComponentManager.endProcessing(environment, key);
            if (this.getLogger().isDebugEnabled()) {
                --activeRequestCount;
            }
            // TODO (CZ): This is only for testing - remove it later on
            EnvironmentStack stack = CocoonComponentManager.getCurrentEnvironmentStack();
            if (stack != null && !stack.isEmpty() ) {
                this.getLogger().error("ENVIRONMENT STACK HAS NOT BEEN CLEANED PROPERLY");       
            }
        }
    }
View Full Code Here

Examples of org.apache.cocoon.components.EnvironmentStack

            this.environment.changeToLastContext();

            String redirectURL = this.environment.getRedirectURL();
            if (redirectURL == null) {

                EnvironmentStack envStack = CocoonComponentManager.getCurrentEnvironmentStack();
                int currentOffset = envStack.getOffset();
                try {
                    CocoonComponentManager.enterEnvironment(this.environment,
                                                            this.manager,
                                                            this.pipelineProcessor);
                    this.processingPipeline.prepareInternal(this.environment);
                    this.sourceValidity = this.processingPipeline.getValidityForEventPipeline();
                    final String eventPipelineKey = this.processingPipeline.getKeyForEventPipeline();
                    if ( eventPipelineKey != null ) {
                        StringBuffer buffer = new StringBuffer(this.systemId);
                        if ( this.systemId.indexOf('?') == -1) {
                            buffer.append('?');
                        } else {
                            buffer.append('&');
                        }
                        buffer.append("pipelinehash=");
                        buffer.append(eventPipelineKey);
                        this.systemIdForCaching = buffer.toString();
                    } else {
                        this.systemIdForCaching = this.systemId;
                    }
                } finally {
                    CocoonComponentManager.leaveEnvironment();
                    envStack.resetOffset(currentOffset);
                }
            } else {
                if (redirectURL.indexOf(":") == -1) {
                    redirectURL = this.protocol + ":/" + redirectURL;
                }
View Full Code Here

Examples of org.apache.cocoon.components.EnvironmentStack

              } else {
                  consumer = new ContentHandlerWrapper(contentHandler);
              }
                // We have to add an environment changer
                // clean environment stack handling.
                EnvironmentStack envStack = CocoonComponentManager.getCurrentEnvironmentStack();
                int currentOffset = envStack.getOffset();
                try {
                    CocoonComponentManager.enterEnvironment(this.environment,
                                                            this.manager,
                                                            this.pipelineProcessor);
                    this.processingPipeline.process(this.environment, new EnvironmentChanger(consumer, envStack));
                } finally {
                    CocoonComponentManager.leaveEnvironment();
                    envStack.resetOffset(currentOffset);
                }
            }
        } catch (SAXException e) {
            // Preserve original exception
            throw e;
View Full Code Here

Examples of org.apache.cocoon.components.EnvironmentStack

            this.environment.changeToLastContext();

            String redirectURL = this.environment.getRedirectURL();
            if (redirectURL == null) {

                EnvironmentStack envStack = CocoonComponentManager.getCurrentEnvironmentStack();
                int currentOffset = envStack.getOffset();
                try {
                    CocoonComponentManager.enterEnvironment(this.environment,
                                                            this.manager,
                                                            this.pipelineProcessor);
                    this.processingPipeline.prepareInternal(this.environment);
                    this.sourceValidity = this.processingPipeline.getValidityForEventPipeline();
                } finally {
                    CocoonComponentManager.leaveEnvironment();
                    envStack.resetOffset(currentOffset);
                }
            } else {
                if (redirectURL.indexOf(":") == -1) {
                    redirectURL = this.protocol + ":/" + redirectURL;
                }
View Full Code Here

Examples of org.apache.cocoon.components.EnvironmentStack

              } else {
                  consumer = new ContentHandlerWrapper(contentHandler);
              }
                // We have to add an environment changer
                // clean environment stack handling.
                EnvironmentStack envStack = CocoonComponentManager.getCurrentEnvironmentStack();
                int currentOffset = envStack.getOffset();
                try {
                    CocoonComponentManager.enterEnvironment(this.environment,
                                                            this.manager,
                                                            this.pipelineProcessor);
                    this.processingPipeline.process(this.environment, new EnvironmentChanger(consumer, envStack));
                } finally {
                    CocoonComponentManager.leaveEnvironment();
                    envStack.resetOffset(currentOffset);
                }
            }
        } catch (SAXException e) {
            // Preserve original exception
            throw e;
View Full Code Here

Examples of org.apache.cocoon.components.EnvironmentStack

            CocoonComponentManager.endProcessing(environment, key);
            if (this.getLogger().isDebugEnabled()) {
                --activeRequestCount;
            }
            // TODO (CZ): This is only for testing - remove it later on
            EnvironmentStack stack = CocoonComponentManager.getCurrentEnvironmentStack();
            if (stack != null && !stack.isEmpty() ) {
                this.getLogger().error("ENVIRONMENT STACK HAS NOT BEEN CLEANED PROPERLY");       
            }
        }
    }
View Full Code Here

Examples of org.apache.cocoon.components.EnvironmentStack

            this.environment.changeToLastContext();

            String redirectURL = this.environment.getRedirectURL();
            if (redirectURL == null) {

                EnvironmentStack envStack = CocoonComponentManager.getCurrentEnvironmentStack();
                int currentOffset = envStack.getOffset();
                try {
                    CocoonComponentManager.enterEnvironment(this.environment,
                                                            this.manager,
                                                            this.pipelineProcessor);
                    this.processingPipeline.prepareInternal(this.environment);
                    this.sourceValidity = this.processingPipeline.getValidityForEventPipeline();
                    final String eventPipelineKey = this.processingPipeline.getKeyForEventPipeline();
                    if ( eventPipelineKey != null ) {
                        StringBuffer buffer = new StringBuffer(this.systemId);
                        if ( this.systemId.indexOf('?') == -1) {
                            buffer.append('?');
                        } else {
                            buffer.append('&');
                        }
                        buffer.append("pipelinehash=");
                        buffer.append(eventPipelineKey);
                        this.systemIdForCaching = buffer.toString();
                    } else {
                        this.systemIdForCaching = this.systemId;
                    }
                } finally {
                    CocoonComponentManager.leaveEnvironment();
                    envStack.resetOffset(currentOffset);
                }
            } else {
                if (redirectURL.indexOf(":") == -1) {
                    redirectURL = this.protocol + ":/" + redirectURL;
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.