Package com.volantis.shared.environment

Examples of com.volantis.shared.environment.EnvironmentInteractionTracker


        // factor an EnvironmentInteractionTracker
        EnvironmentFactory environmentFactory =
                EnvironmentFactory.getDefaultInstance();

        EnvironmentInteractionTracker envTracker =
                environmentFactory.createInteractionTracker();

        // push the root EnvironmentInteraction onto the tracker
        if (environmentInteraction != null) {
            envTracker.pushEnvironmentInteraction(environmentInteraction);
        }

        // factor an Expression context passing in both the Environment
        // Interaction and Namespace prefix trackers
        ExpressionContext expressionContext =
View Full Code Here


     * Helper method which creates an expression context.
     *
     * @return the expression context
     */
    private ExpressionContext createExpressionContext() {
        EnvironmentInteractionTracker eit =
                new SimpleEnvironmentInteractionTracker();
        NamespacePrefixTracker npt = new DefaultNamespacePrefixTracker();
        ExpressionContext context = ExpressionFactory.getDefaultInstance().
                createExpressionContext(eit, npt);
        return context;
View Full Code Here

     * Helper method which creates an expression context.
     *
     * @return the expression context
     */
    private ExpressionContext createExpressionContext() {
        EnvironmentInteractionTracker eit =
                new SimpleEnvironmentInteractionTracker();
        NamespacePrefixTracker npt = new DefaultNamespacePrefixTracker();
        ExpressionContext context = ExpressionFactory.getDefaultInstance().
                createExpressionContext(eit, npt);
        return context;
View Full Code Here

        session.setDevice(internalDevice);
        pageContext.setDevice(session.getDevice());

        // Create an expression context for the environment context.
        final ExpressionFactory factory = ExpressionFactory.getDefaultInstance();
        final EnvironmentInteractionTracker simpleTracker =
                new SimpleEnvironmentInteractionTracker();
        final ExpressionContext exprContext = factory.
                createExpressionContext(simpleTracker,
                        new DefaultNamespacePrefixTracker());
View Full Code Here

                pipelineFactory.getNamespaceFactory().createPrefixTracker();

        // ...and an EnvironmentInteractionTracker.
        EnvironmentFactory environmentFactory =
                EnvironmentFactory.getDefaultInstance();
        EnvironmentInteractionTracker envTracker =
                environmentFactory.createInteractionTracker();

        //create a root environment interaction to encapsulate the request
        EnvironmentInteraction rootEnvironmentInteraction =
                createRootEnvironmentInteraction(
                        httpRequest, httpResponse);
        envTracker.pushEnvironmentInteraction(rootEnvironmentInteraction);

        final ExpressionContext exprContext =
                pipelineFactory.getExpressionFactory().
                createExpressionContext(envTracker, namespaceTracker);
View Full Code Here

        // obtain the default EnvironmentFactory
        EnvironmentFactory environmentFactory =
                EnvironmentFactory.getDefaultInstance();

        // factor an EnvironmentInteractionTracker
        EnvironmentInteractionTracker envTracker =
                environmentFactory.createInteractionTracker();
       
        // obtain the rootEnvironmentInteraction and push onto the tracker
        EnvironmentInteraction envInteraction =
            environmentContext.createRootEnvironmentInteraction();
        envTracker.pushEnvironmentInteraction(envInteraction);

        environmentContext.pushEnvironmentInteraction(envTracker);

        // See if an expression context already exists or not; an expression
        // context is shared throughout the lifetime of the request but is
View Full Code Here

TOP

Related Classes of com.volantis.shared.environment.EnvironmentInteractionTracker

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.