Package com.volantis.mcs.servlet

Examples of com.volantis.mcs.servlet.MarinerServletApplication


                PREDEFINED_LOG4J_LOCATION);

        // As MCS resets all logging configuration on startup we force it to
        // initialise first. Then mss specific logging is appended to the mcs
        // logging configuration.
        MarinerServletApplication mariner = MarinerServletApplication.
                getInstance(getServletContext());
        mariner.initialize(getServletContext());

        // Configure this servlet
        String configFile = this.getInitParameter("config.file");
        if (configFile == null) {
            configFile = CONFIG_FILE;
View Full Code Here


                                ConfigContext cc = new ServletConfigContext(servletContext);

                                ServletExternalPathToInternalURLMapper mapper =
                                        new ServletExternalPathToInternalURLMapper(servletContext);
                                volantis.initializeInternal(mapper, cc,
                                        new MarinerServletApplication());
                                servletContext.setAttribute("volantis",
                                        volantis);
                            }
                        }
                    });
View Full Code Here

        final PolicyReferenceResolverMock referenceResolverMock =
                new PolicyReferenceResolverMock("referenceResolverMock",
                        expectations);
        referenceResolverMock.expects.
                resolveQuotedTextExpression(fragmentName).returns(null);
        MarinerApplication application = new MarinerServletApplication();
        MarinerConfiguration config = new MarinerConfiguration();
        Volantis volantis = getVolantis();
        PrivateAccessor.setField(volantis, "marinerConfig", config);
        PrivateAccessor.invoke(volantis, "initializeURLRewriters",
                new Class [] {MarinerApplication.class},
View Full Code Here

                         PortalFilterChain portalFilterChain)
        throws ServletException, IOException {
           
        // Get the MarinerServletApplication.  This will initialise
        // MCS if it hasn't already been done.
        MarinerServletApplication application = MarinerServletApplication.
            getInstance(filterConfig.getServletContext());

        // The response is a HTTP response.
        HttpServletResponse httpResponse = (HttpServletResponse) response;
View Full Code Here

                OptionConverter.substVars(getInitParameter(HOST), null);
            String portString =
                OptionConverter.substVars(getInitParameter(PORT), null);
            if (password != null && portString != null) {
                int port = Integer.parseInt(portString);
                MarinerServletApplication msa =
                        MarinerServletApplication.getInstance(
                                this.getServletContext());
                Volantis volantis = ApplicationInternals.getVolantisBean(msa);
                marinerAgent = new MarinerAgent(password, host, port, volantis);
                marinerAgent.start();
View Full Code Here

        Logger.getDefaultHierarchy().setThreshold(Level.WARN);

        MockTestHelper.begin();
        try {
            MarinerServletApplication servletApplication =
                    createMarinerApplication(url.toExternalForm());
            WebApp webApp = new WebApp(servletApplication);
            return webApp;
        } finally {
            MockTestHelper.end(false);
View Full Code Here

        servletContextMock.fuzzy
                .setAttribute("marinerApplication",
                        mockFactory.expectsInstanceOf(
                                MarinerServletApplication.class));

        MarinerServletApplication servletApplication =
                MarinerServletApplication.getInstance(servletContextMock);

        servletContextMock.expects.getAttribute("marinerApplication")
                .returns(servletApplication).any();
        return servletApplication;
View Full Code Here

TOP

Related Classes of com.volantis.mcs.servlet.MarinerServletApplication

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.