Examples of Volantis


Examples of com.volantis.mcs.runtime.Volantis

                throws RepositoryException {

        ApplicationContext applicationContext = null;

        // Get the Volantis bean.
        Volantis volantisBean = Volantis.getInstance();
        if (volantisBean == null) {
            throw new IllegalStateException
                    ("Volantis bean has not been initialised");
        }
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

     */   
    public static boolean isAncestorDevice(String ancestor, String child)
            throws RepositoryException {

        //get the volantis bean
        Volantis volantisBean = Volantis.getInstance();
        if (volantisBean == null) {
            throw new IllegalStateException("Volantis has not been initialised");
        }

        DeviceReader deviceReader = volantisBean.getDeviceReader();
        //get the device with the child's name and walkback up the fallback
        //chain to see if ancestor occurs somewhere up the tree
        InternalDevice device = deviceReader.getDevice(child);
        if (device == null) {
            return false;
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

       
        final MPSPluginConfigValue mps = createMpsValue();
        MPSAppConfigurator appConf = new MPSAppConfigurator();
        appConf.setPluginConfigValue(mps);
        // Set appConf in AppManager
        volantis = new Volantis();
        servletContext = new ServletContextStub();
        AppManager am = new AppManager(volantis, servletContext);
        am.setAppConf(appConf);
        PluginConfigFileBuilder builder = new MPSPluginConfigBuilder();
        am.registerPluginConfigFileBuilder(builder, mps.getClass());
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

                                new MPSServletApplicationContextFactory() );

        applicationRegistry.registerApplication( "mps", arc );

        try {
            Volantis volantisBean = Volantis.getInstance();
            if( volantisBean == null ) {
                throw new IllegalStateException
                        ( "Volantis bean has not been initialised" );
            }
            MpsPluginConfiguration config =
                    (MpsPluginConfiguration)volantisBean.getApplicationPluginConfiguration( "MPS" );

            baseUrl = config.getInternalBaseUrl();
            if( logger.isDebugEnabled() ) {
                logger.debug( "MPS internal-base-url: " + baseUrl );
            }
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

            String fullURL;

            StringBuffer hostBuffer = new StringBuffer();
            if (mssUrl == null) {
                Volantis bean = getVolantis();
                String internalURL = bean.getInternalURL().getExternalForm();
                String baseURL = bean.getPageBase();


                // Create the URL used to make the request and also to send
                // back with the id later
                hostBuffer.append(internalURL);
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

                getInstance(filterConfig.getServletContext());
        } catch(Throwable t) {
            throw new ServletException(t);
        }

        Volantis volantis = ApplicationInternals.getVolantisBean(application);

        // Get the servlet configuration from the mcs-config.xml file. This
        // is an optional configuration. If not present, the servlet filter
        // operates in "pass-through" mode.
        ServletFilterConfiguration config =
                volantis.getServletFilterConfiguration();

        if (config != null) {
            passThroughMode = false;
            excludedDevices = config.getExcludedDevices();
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

         // We need to create a Volantis bean to initialise the CSS cache. If no
         // configuration is supplied the cache defaults to a long flush cycle
         // (10 minutes). So unless the test case is running on an Abacus then
         // it should not be time critical.
         //
         volantis = new Volantis();

         marinerApplicationMock =
                 new MarinerServletApplicationMock("marinerApplication",
                         expectations);
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

        protocol.setMarinerPageContext(pageContext);

        // Add in a default protocols configuration so that post field
        // elements do not fail.

        Volantis bean = getVolantis();
        ProtocolsConfiguration config = bean.getProtocolsConfiguration();
        config.setWmlPreferredOutputFormat("wmlc");
        pageContext.setVolantis(bean);


        // set a page head attribute to prevent multiple fixtures failing when
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

        TestMarinerPageContext mpc = new TestMarinerPageContext();
        mpc.pushRequestContext( new TestMarinerRequestContext());

        ProtocolsConfiguration config = new ProtocolsConfiguration();
        config.setWmlPreferredOutputFormat("wmlc");
        Volantis bean = new Volantis();
        bean.setProtocolsConfiguration(config);
        mpc.setVolantis(bean);

        /**
         * Inner class that may be used to iterate through tests in the
         * specified order.
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

        mps.channels.add(smtp);

        MPSAppConfigurator appConf = new MPSAppConfigurator();
        appConf.setPluginConfigValue(mps);

        volantisBean = new Volantis();
        ServletContextStub servletContext = new ServletContextStub();
        appManager = new AppManager(volantisBean, servletContext);
        appManager.setAppConf(appConf);
        PluginConfigFileBuilder builder = new MPSPluginConfigBuilder();
        appManager.registerPluginConfigFileBuilder(builder, mps.getClass());
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.