Package org.apache.cocoon.environment.wrapper

Examples of org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade


       
        // Build an environment wrapper
        // If the current env is a facade, change the delegate and continue processing the facade, since
        // we may have other redirects that will in turn also change the facade delegate
       
        MutableEnvironmentFacade facade = environment instanceof MutableEnvironmentFacade ?
            ((MutableEnvironmentFacade)environment) : null;
       
        if (facade != null) {
            // Consider the facade delegate (the real environment)
            environment = facade.getDelegate();
        }
       
        Environment newEnv = new ForwardEnvironmentWrapper(environment, this.manager, uri, getLogger());
       
        if (facade != null) {
            // Change the facade delegate
            facade.setDelegate((EnvironmentWrapper)newEnv);
            newEnv = facade;
        }
       
        // Get the processor that should process this request
        TreeProcessor processor;
View Full Code Here


        EnvironmentWrapper wrapper = new EnvironmentWrapper(env, requestURI,
                                                   queryString, logger, manager, rawMode, view);
        wrapper.setURI(prefix, uri);
       
        // The environment is a facade whose delegate can be changed in case of internal redirects
        this.environment = new MutableEnvironmentFacade(wrapper);

        // ...and put information passed from the parent request to the internal request
        if ( null != parameters ) {
            this.environment.getObjectModel().put(ObjectModelHelper.PARENT_CONTEXT, parameters);
        } else {
View Full Code Here

TOP

Related Classes of org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade

Copyright © 2018 www.massapicom. 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.