Examples of VolantisProtocol


Examples of com.volantis.mcs.protocols.VolantisProtocol

    }

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

Examples of com.volantis.mcs.protocols.VolantisProtocol

        public int invokeElementStartEnd(MarinerRequestContext requestContext,
                                         ReturnsIntInvoker invoker)
                throws PAPIException {
            TestMarinerPageContext pageContext = (TestMarinerPageContext)
                    ((TestMarinerRequestContext) requestContext).getMarinerPageContext();
            VolantisProtocol newProtocol = new VolantisProtocolStub() {
                public void writeOpenSpan(com.volantis.mcs.protocols.SpanAttributes attributes) {
                    writeOpenMarkupHasBeenCalled = true;
                }

                public void writeCloseSpan(com.volantis.mcs.protocols.SpanAttributes attributes) {
                    writeCloseMarkupHasBeenCalled = true;
                }
            };
            VolantisProtocol origProtocol = pageContext.getProtocol();
            pageContext.setProtocol(newProtocol);

            int result = invoker.invoke();

            pageContext.setProtocol(origProtocol);
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.TestMMS_SMIL_2_0Factory(),
                internalDevice);
        return protocol;
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol

     */
    public void testElementStartImpl() throws Exception {
        PAPIElement element = createTestablePAPIElement();
        TestMarinerPageContext pageContext = new TestMarinerPageContext();
        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        VolantisProtocol protocol = new VolantisProtocolStub();
        pageContext.pushRequestContext(requestContext);
        pageContext.setProtocol(protocol);
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        protocol.setMarinerPageContext(pageContext);

        pageContext.setPolicyReferenceResolver(
                PolicyReferenceResolverTestHelper.getCommonExpectations(
                        expectations, mockFactory));

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.TestHDML_Version3Factory(),
                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.TestXHTMLBasic_Netfront3Factory(),
                internalDevice);
        return protocol;
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol

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

Examples of com.volantis.mcs.protocols.VolantisProtocol

    /**
     * This method sets the content type.
     */
    public void initialiseResponse () {
        VolantisProtocol protocol = marinerPageContext.getProtocol ();
        setContentType (protocol.mimeType ());
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol

    protected WBSAXContentHandler createXMLProducer(Writer output) {

        // Create a proper protocol character encoder rather than a test one
        // since we rely on encoding rules which are defined in the protocol.
        ProtocolBuilder builder = new ProtocolBuilder();
        VolantisProtocol protocol = builder.build(
                new ProtocolRegistry.WMLVersion1_3Factory(),
                InternalDeviceTestHelper.createTestDevice());
        CharacterEncoder pce = new ProtocolCharacterEncoder(protocol);

        EncodingWriter enc = new EncodingWriter(output, pce);
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol

        // Set up the protocol (needed for OutputBuffer management)
        // The test implementation avoids the need for an initialized volantis
        // bean, which is jolly handy in this case
        ProtocolBuilder builder = new ProtocolBuilder();
        VolantisProtocol protocol = builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                InternalDeviceTestHelper.createTestDevice());
        pageContext.setProtocol(protocol);

        // Set the Layout (needed for FormatReference and panes)
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.