Package com.volantis.mcs.context

Examples of com.volantis.mcs.context.MarinerRequestContext


     * @return the rewritten MarinerURL.
     */
    protected MarinerURL rewriteFormURL(MarinerURL url) {
        // Get the URLRewriter to use to encode session information in the
        // URL and use it.
        MarinerRequestContext requestContext = context.getRequestContext();
        URLRewriter sessionURLRewriter = context.getSessionURLRewriter();

        MarinerURL sessionURL = sessionURLRewriter.mapToExternalURL
            (requestContext, url);

View Full Code Here


     *
     * @param bodyContext
     */
    private void packagePage(Object bodyContext)
        throws IOException, ProtocolException {
        MarinerRequestContext requestContext = context.getRequestContext();
        ApplicationContext ac =
            ContextInternals.getApplicationContext(requestContext);
        Packager packager = ac.getPackager();

        if (packager != null) {
View Full Code Here

     * container.
     */
    public void testGetApplication()
            throws Exception {
        ContainerLocator locator = MarkupPluginScope.APPLICATION.getLocator();
        MarinerRequestContext context = createContextObjects();

        volantis.expects.getMarkupPluginContainer()
                .returns(applicationScopeContainer)
                .any();

View Full Code Here

     * container.
     */
    public void testGetCanvas()
            throws Exception {
        ContainerLocator locator = MarkupPluginScope.CANVAS.getLocator();
        MarinerRequestContext context = createContextObjects();

        pageContext.expects.getMarkupPluginContainer()
                .returns(canvasScopeContainer)
                .any();

View Full Code Here

     * container.
     */
    public void testGetSession()
            throws Exception {
        ContainerLocator locator = MarkupPluginScope.SESSION.getLocator();
        MarinerRequestContext context = createContextObjects();

        session.expects.getMarkupPluginContainer()
                .returns(sessionScopeContainer)
                .any();

View Full Code Here

                      factory);
    }

    protected static MarinerRequestContext createMarinerRequestContext() {

        MarinerRequestContext requestContext =
                new MarinerRequestContext() {
                    public MarinerRequestContext createNestedContext()
                            throws IOException,
                            RepositoryException,
                            MarinerContextException {
                        return null;
View Full Code Here

        MarkupPluginManagerImpl manager = createManagerForOnePlugin(config);

        InvokeAttributes attrs = new InvokeAttributes();
        attrs.setName(pluginName);

        MarinerRequestContext requestContext = createMarinerRequestContext();

        MarkupPlugin plugin
                = manager.getMarkupPlugin(requestContext, attrs.getName());
        assertTrue("Expected an instance of ManagerTestMarkupPlugin.",
                   plugin instanceof ManagerTestMarkupPlugin);
View Full Code Here

        MarkupPluginManagerImpl manager = createManagerForOnePlugin(config);

        InvokeAttributes attrs = new InvokeAttributes();
        attrs.setName(pluginName);

        MarinerRequestContext requestContext = createMarinerRequestContext();

        MarkupPlugin fromManager =
                manager.getMarkupPlugin(requestContext, attrs.getName());
        assertNotNull("Unexpected null value for plugin", fromManager);
        assertTrue("Expected an instance of ManagerTestMarkupPlugin.",
View Full Code Here

        MarkupPluginManagerImpl manager = createManagerForOnePlugin(config);

        InvokeAttributes attrs = new InvokeAttributes();
        attrs.setName(pluginName);

        MarinerRequestContext requestContext = createMarinerRequestContext();

        MarkupPlugin fromManager =
                manager.getMarkupPlugin(requestContext, attrs.getName());
        assertNotNull("Unexpected null value for plugin", fromManager);
        assertTrue("Expected an instance of ManagerTestMarkupPlugin.",
View Full Code Here

TOP

Related Classes of com.volantis.mcs.context.MarinerRequestContext

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.