Examples of MarinerURL


Examples of com.volantis.mcs.utilities.MarinerURL

        // Probably we should avoid redefining the context's volantis it as it
        // will break a load of other methods as well.
        PrivateAccessor.setField(context, "volantisBean", volantis);

        // Use the usual value for base url.
        PrivateAccessor.setField(volantis, "baseURL", new MarinerURL("/"));

        // Test a "null" page base.
        PrivateAccessor.setField(volantis, "pageBase", null);
        assertEquals("", "/", context.getAbsolutePageBaseURL());
View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL

         * Override superclass method (non-Javadoc)
         * @see com.volantis.mcs.context.MarinerPageContext#getRequestURL(boolean)
         */
        public MarinerURL getRequestURL(boolean clone) {
            if (requestURL == null) {
                requestURL = new MarinerURL();
            }
            if (clone) {
                return new MarinerURL(requestURL);
            } else {
                return requestURL;
            }
        }
View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL

        TestMarinerRequestContext requestContext
            = new TestMarinerRequestContext();
        TestMarinerPageContext pageContext = new TestMarinerPageContext();
        pageContext.pushRequestContext(requestContext);
        pageContext.setRequestURL(
            new MarinerURL("http://www.my.com/page2.jsp;jsessionid=123"));
        pageContext.setVolantis(volantis);
        return pageContext;
    }
View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL

     * @param value the value to use to create the Mariner URL
     * @return a Mariner URL or null.
     */
    private static MarinerURL createMarinerURL(String value) {
        if (value != null) {
            return new MarinerURL(value);
        } else {
            return null;
        }
    }
View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL

        ShardLinkDetails details = context.getShardLinkDetails();
        if (details == null) {
            return null;
        } else {
            MarinerURL url = details.getURL();
            return url.getExternalForm();
        }
    }
View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL

                "layoutName", new CanvasLayout(), compiledStyleSheet, null);
        deviceLayoutContext.setDeviceLayout(runtimeDeviceLayout);
        deviceLayoutContext.initialise ();

        pageContext.pushDeviceLayoutContext(deviceLayoutContext);
        MarinerURL requestURL = new MarinerURL();
        pageContext.setRequestURL(requestURL);

        // Need to setup a region instance for testing inclusions
        RegionInstance regionInstance =
                new RegionInstance(new NDimensionalIndex(new int[1]));
View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL

        pageContext.pushRequestContext(requestContext);
        pageContext.setProtocol(protocol);
        pageContext.setPageGenerationCache(new PageGenerationCache());
        pageContext.setRequestURL(
                new MarinerURL("http://server:8080/volantis/test.xdime"));

        final PolicyReferenceResolverMock referenceResolverMock =
                new PolicyReferenceResolverMock("referenceResolverMock",
                        expectations);
        pageContext.setPolicyReferenceResolver(referenceResolverMock);
View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL

      if(contextPath==null || contextPath.length()==0) {
        contextPath = "/";
      } else if (contextPath.charAt (contextPath.length () - 1) != '/') {
        contextPath = contextPath + '/';
      }
      contextPathURL = new MarinerURL (contextPath);
      contextPathURL.makeReadOnly ();
    }

    return contextPathURL;
  }
View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL

    }

    public MarinerURL makeURL(DissectionContext dissectionContext,
                              MarinerURL documentURL, int changeIndex) {
        if (documentURL.isReadOnly()) {
            documentURL = new MarinerURL(documentURL);
        }

        documentURL.setParameterValue("vfrag", Integer.toString(changeIndex));

        return documentURL;
View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL

    public MarinerURL makePathologicalURL(DissectionContext dissectionContext,
                                          MarinerURL documentURL)
        throws DissectionException {

        if (documentURL.isReadOnly()) {
            documentURL = new MarinerURL(documentURL);
        }

        documentURL.setParameterValue("vfrag", "999");

        return documentURL;
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.