Package com.volantis.mcs.protocols.builder

Examples of com.volantis.mcs.protocols.builder.ProtocolBuilder.build()


        XHTMLBasicTransVisitorTestCase {

    // javadoc inherited from superclass
    protected DOMProtocol createDOMProtocol(InternalDevice internalDevice) {
        ProtocolBuilder builder = new ProtocolBuilder();
        return (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestXHTMLFullFactory(),
                internalDevice);
    }

    // javadoc inherited from superclass
View Full Code Here


        defaultDevice.setPolicyValue(
            DevicePolicyConstants.SUPPORTS_JAVASCRIPT, "true");
        InternalDevice device =
            INTERNAL_DEVICE_FACTORY.createInternalDevice(defaultDevice);

        return (DOMProtocol)builder.build(
            new ProtocolRegistry.HTMLVersion4_0Factory(), device);
    }

    private MarinerRequestContextMock getMarinerRequestContextMock() {
View Full Code Here

     * Simple method test
     */
    public void testGetVisitor() throws Exception {
        TransFactory factory = new XHTMLBasicTransFactory(configuration);
        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                internalDevice);

        TransVisitor visitor = factory.getVisitor(protocol);

View Full Code Here

    // javadoc inherited
    protected VolantisProtocol getProtocol() {
        // todo: better: make this work with the test version
        ProtocolBuilder protocolBuilder = new ProtocolBuilder();
        VolantisProtocol protocol = protocolBuilder.build(
                new ProtocolRegistry.VoiceXMLVersion1_0Factory(),
                internalDevice);
       
        return protocol;
    }
View Full Code Here

    public void testHrefMakeChild() throws IOException {

        ProtocolFactory factory = new ProtocolRegistry.HTMLVersion4_0Factory();
        ProtocolBuilder builder = new ProtocolBuilder();

        DOMProtocol protocol = (DOMProtocol)builder.build(factory, null);

        Document document = domFactory.createDocument();

        Element element1 = domFactory.createElement();
        element1.setName("h1");
View Full Code Here

    public void testHrefMakeParent() throws IOException {

        ProtocolFactory factory = new ProtocolRegistry.HTMLVersion4_0Factory();
        ProtocolBuilder builder = new ProtocolBuilder();

        DOMProtocol protocol = (DOMProtocol)builder.build(factory, null);

        Document document = domFactory.createDocument();

        Element element1 = domFactory.createElement();
        element1.setName("span");
View Full Code Here

    public void testHrefPushDown() throws IOException {

        ProtocolFactory factory = new ProtocolRegistry.HTMLVersion4_0Factory();
        ProtocolBuilder builder = new ProtocolBuilder();

        DOMProtocol protocol = (DOMProtocol)builder.build(factory, null);

        Document document = domFactory.createDocument();

        Element element1 = domFactory.createElement();
        element1.setName("tr");
View Full Code Here

    public void testHrefIgnore() throws IOException {

        ProtocolFactory factory = new ProtocolRegistry.HTMLVersion4_0Factory();
        ProtocolBuilder builder = new ProtocolBuilder();

        DOMProtocol protocol = (DOMProtocol)builder.build(factory, null);

        Document document = domFactory.createDocument();

        Element element1 = domFactory.createElement();
        element1.setName("span");
View Full Code Here

        ((DefaultDevice) device.getDevice()).setPolicyValue(
            DevicePolicyConstants.SUPPORTS_JAVASCRIPT, "true");
        device.setProtocolConfiguration(null);

        return (DOMProtocol) builder.build(
                new ProtocolRegistry.HTMLVersion3_2Factory(), device);
    }

    // javadoc inherited
    protected String getProtocolName() {
View Full Code Here

        //device.setProtocolConfiguration(protocolFactory.createConfiguration(device));
        device.setProtocolConfiguration(null);
       

        DOMProtocol protocol = (DOMProtocol) builder.build(
                protocolFactory, device);
        return protocol;
    }

    // Javadoc inherited
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.