Examples of EnvironmentWrapper


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

        // create system ID
        this.systemId = queryString == null ?
            "cocoon://" + requestURI :
            "cocoon://" + requestURI + "?" + queryString;

        this.environment = new EnvironmentWrapper(env, requestURI, queryString, logger, manager, rawMode);
        this.uri = uri;
        this.refresh();
    }
View Full Code Here

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

        this.systemId = queryString == null ?
            this.protocol + "://" + requestURI :
            this.protocol + "://" + requestURI + "?" + queryString;

        // create environment...
        this.environment = new EnvironmentWrapper(env, requestURI,
                                                   queryString, logger, manager, rawMode);
        // ...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

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

    if (out == null) {
        throw new NullPointerException("No outputstream specified for process");
    }

    // Create a wrapper environment for the subrequest to be processed.
    EnvironmentWrapper wrapper = new EnvironmentWrapper(env, uri, "", getLogger());
    wrapper.setURI("",uri);
    wrapper.setOutputStream(out);
    wrapper.setAttribute("bean-dict", biz);

    // Attermpt to start processing the wrapper environment
    Object key = CocoonComponentManager.startProcessing(wrapper);

    Processor processor = null;
    boolean result = false;
    try {
        // Retrieve a processor instance
        processor = (Processor)this.manager.lookup(Processor.ROLE);

        // Enter the environment
        CocoonComponentManager.enterEnvironment(wrapper, this.manager, processor);

        // Process the subrequest
        result = processor.process(wrapper);
        wrapper.commitResponse();
        out.flush();

        // Return whatever the processor returned us
        return(result);
    } catch (Exception any) {
View Full Code Here

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

        if ( ! isDefaultPort ) {
            sysID.append(":").append(request.getServerPort());
        }
        sysID.append(request.getContextPath()).append('/').append(requestURI);
        this.systemId = sysID.toString();
        this.environment = new EnvironmentWrapper(env, requestURI, queryString, logger);
        queryStringPos = uri.indexOf('?');
        if (queryStringPos != -1) {
            uri = uri.substring(0, queryStringPos);
        }
        this.uri = uri;
View Full Code Here

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

        // create system ID
        this.systemId = queryString == null ?
            "cocoon://" + requestURI :
            "cocoon://" + requestURI + "?" + queryString;

        this.environment = new EnvironmentWrapper(env, requestURI, queryString, logger, rawMode);
        this.uri = uri;
        this.refresh();
    }
View Full Code Here

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

        this.systemId = queryString == null ?
            this.protocol + "://" + requestURI :
            this.protocol + "://" + requestURI + "?" + queryString;

        // create environment...
        this.environment = new EnvironmentWrapper(env, requestURI,
                                                   queryString, logger, manager, rawMode, view);
        // ...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

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

        } else {
            uri = env.getURIPrefix() + uri;
        }

        // Create a wrapper environment for the subrequest to be processed.
        EnvironmentWrapper wrapper = new EnvironmentWrapper(env, uri, "", getLogger());
        wrapper.setURI("", uri);
        wrapper.setOutputStream(out);
        wrapper.setAttribute("bean-dict", biz);

        // Attermpt to start processing the wrapper environment
        Object key = CocoonComponentManager.startProcessing(wrapper);

        Processor processor = null;
        boolean result = false;
        try {
            // Retrieve a processor instance
            processor = (Processor)this.manager.lookup(Processor.ROLE);

            // Enter the environment
            CocoonComponentManager.enterEnvironment(wrapper, this.manager, processor);

            // Process the subrequest
            result = processor.process(wrapper);
            wrapper.commitResponse();
            out.flush();

            // Return whatever the processor returned us
            return(result);
        } catch (Exception any) {
View Full Code Here

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

        this.systemId = queryString == null ?
            this.protocol + "://" + requestURI :
            this.protocol + "://" + requestURI + "?" + queryString;

        // create environment...
        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
View Full Code Here

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

        this.systemId = queryString == null ?
            this.protocol + "://" + requestURI :
            this.protocol + "://" + requestURI + "?" + queryString;

        // create environment...
        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
View Full Code Here

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

        // create system ID
        this.systemId = queryString == null ?
            "cocoon://" + requestURI :
            "cocoon://" + requestURI + "?" + queryString;

        this.environment = new EnvironmentWrapper(env, requestURI, queryString, logger, manager, rawMode);
        this.uri = uri;
        this.refresh();
    }
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.