Package com.volantis.mcs.runtime

Examples of com.volantis.mcs.runtime.RuntimePageURLRewriter


        config.setWmlPreferredOutputFormat("wmlc");
        volantis.setProtocolsConfiguration(config);

        try {
            PrivateAccessor.setField(volantis, "pageURLRewriter",
                new RuntimePageURLRewriter(null, null));
        } catch (Exception e) {
            throw new UndeclaredThrowableException(e);
        }
        return volantis;
    }
View Full Code Here


     *
     * @param pageURLRewriter application specific PageURLRewriter.
     */
    public void setPageURLRewriter(PageURLRewriter pageURLRewriter) {
        // Get global rewriter (this is never null).
        RuntimePageURLRewriter globalRewriter = Volantis.getInstance().getPageURLRewriter();
       
        // If global rewriter contains user-defined rewriter and application
        // specific rewriter is specified, combine them both into single
        // rewriter. Otherwise, use one or none of them.
        if ((pageURLRewriter != null) && globalRewriter.isUserDefinedRewriter()) {
            this.pageURLRewriter = new CombinedPageURLRewriter(
                    globalRewriter, pageURLRewriter);
        } else {
            this.pageURLRewriter = globalRewriter.isUserDefinedRewriter() ?
                    globalRewriter : pageURLRewriter;
        }
    }
View Full Code Here

    public TestMarinerPageContext() {
        volantis = new com.volantis.mcs.runtime.Volantis();
        try {
            PrivateAccessor.setField(volantis, "pageURLRewriter",
                    new RuntimePageURLRewriter(null, null));
            PrivateAccessor.setField(volantis, "layoutURLRewriter",
                    new RuntimePageURLRewriter(null, null));           
            this.pushDeviceLayoutContext(new TestDeviceLayoutContext());
        } catch (Exception e) {
            throw new UndeclaredThrowableException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.RuntimePageURLRewriter

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.