Examples of VolantisProtocol


Examples of com.volantis.mcs.protocols.VolantisProtocol

        pageContext = new TestMarinerPageContext();
        requestContext = new TestMarinerRequestContext();
        // Register a dummy EnvironmentContext against the request context
        ContextInternals.setEnvironmentContext(requestContext,
                                               new TestEnvironmentContext());
        VolantisProtocol protocol = new VolantisProtocolStub();       
        pageContext.setProtocol(protocol);
        pageContext.setPageGenerationCache(new PageGenerationCache());
        pageContext.setRequestURL(
                new MarinerURL("http://server:8080/volantis/test.xdime"));
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        protocol.setMarinerPageContext(pageContext);

        // Create the xfform form element surrounding the xfimplicit. This is
        // required as XFImplicitElement.elementStart gets the current element
        // from the page context.
        formElement = new XFFormElementImpl();
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol

    }

    protected VolantisProtocol createTestableProtocol(
            InternalDevice internalDevice) {
        ProtocolBuilder builder = new ProtocolBuilder();
        VolantisProtocol protocol = builder.build(
                new TestProtocolRegistry.TestWapTV5_WMLVersion1_3Factory(),
                internalDevice);
        return protocol;
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol

    // javadoc inherited.
    protected VolantisProtocol createTestableProtocol(
            InternalDevice internalDevice) {
        ProtocolBuilder builder = new ProtocolBuilder();
        VolantisProtocol protocol = builder.build(
                new TestProtocolRegistry.TestXHTMLBasic_MIB2_1Factory(),
                internalDevice);
        return protocol;
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol

    protected VolantisProtocol createTestableProtocol(
            InternalDevice internalDevice) {
        ProtocolBuilder builder = new ProtocolBuilder();

        VolantisProtocol protocol = builder.build(
                new TestProtocolRegistry.TestHTMLVersion3_2Factory(),
                internalDevice);
        return protocol;
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol

    /**
     * Sets the protocol used to one that support native markup
     */  
    private void useNativeMarkupSuppportedProtocol() {
        ProtocolBuilder builder = new ProtocolBuilder();
        VolantisProtocol protocol = builder.build(
                new TestProtocolRegistry.TestWMLRootFactory(),
                InternalDeviceTestHelper.createTestDevice());
        protocol.setMarinerPageContext(pageContext);
        pageContext.setProtocol(protocol);
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol

            }
        };
        initialiseContexts(pageContext);

        ProtocolBuilder builder = new ProtocolBuilder();
        VolantisProtocol protocol = builder.build(
                new TestProtocolRegistry.VDXMLVersion2_0Factory(),
                InternalDeviceTestHelper.createTestDevice());
        protocol.setMarinerPageContext(pageContext);
        pageContext.setProtocol(protocol);

        attributes.setPane("TestPane");
        attributes.setTargetLocation("pane");
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol

            }
        };
        initialiseContexts(pageContext);

        ProtocolBuilder builder = new ProtocolBuilder();
        VolantisProtocol protocol = builder.build(
                new TestProtocolRegistry.TestXHTMLBasicFactory(),
                InternalDeviceTestHelper.createTestDevice());
        protocol.setMarinerPageContext(pageContext);
        pageContext.setProtocol(protocol);

        attributes.setPane("TestPane");
        attributes.setTargetLocation("pane");
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol

            }
        };
        initialiseContexts(pageContext);

        ProtocolBuilder builder = new ProtocolBuilder();
        VolantisProtocol protocol = builder.build(
                new TestProtocolRegistry.TestXHTMLBasicFactory(),
                InternalDeviceTestHelper.createTestDevice());
        protocol.setMarinerPageContext(pageContext);
        pageContext.setProtocol(protocol);

        attributes.setPane("TestPane");
        attributes.setTargetLocation("pane");
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol

            protected void setUp(MarinerPageContext pageContext)
                    throws Exception {
                // Now set up an appropriate context within the Menu Model and
                // the page context
                MenuModelBuilder builder = pageContext.getMenuBuilder();
                VolantisProtocol protocol = pageContext.getProtocol();
                originalBuffer = protocol.getOutputBufferFactory().
                        createOutputBuffer();
                builder.startMenu();
                builder.setElementDetails("top", null,
                        StylesBuilder.getDeprecatedStyles());
                pageContext.pushOutputBuffer(originalBuffer);
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol

            protected void setUp(MarinerPageContext pageContext)
                    throws Exception {
                // Now set up an appropriate context within the Menu Model and
                // the page context
                MenuModelBuilder builder = pageContext.getMenuBuilder();
                VolantisProtocol protocol = pageContext.getProtocol();
                originalBuffer = protocol.getOutputBufferFactory().
                        createOutputBuffer();
                builder.startMenu();

                pageContext.pushOutputBuffer(originalBuffer);
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.