Package com.volantis.mcs.context

Examples of com.volantis.mcs.context.MarinerRequestContext


     * @throws SAXException
     */
    protected void callIAPIElementEnd() throws SAXException {

        // Get the current request context
        MarinerRequestContext requestContext =
            marlinContext.getInitialRequestContext();

        IAPIElement element = elementStackEntry.element;
        IAPIAttributes attributes = elementStackEntry.attributes;

View Full Code Here


                                      fragmentationSpecifier);

        // Get the URLRewriter to use to encode session information in the
        // URL and use it, do this before stripping the URL as otherwise it is
        // not done properly.
        MarinerRequestContext requestContext = context.getRequestContext();
        URLRewriter sessionURLRewriter = context.getSessionURLRewriter();
        MarinerURL sessionURL
            = sessionURLRewriter.mapToExternalURL(requestContext,
                                                  documentURL);
View Full Code Here

        // We are only interested in the jsessionid so we can use a fake url.
       
        // Get the URLRewriter to use to encode session information in the
        // URL and use it, do this before stripping the URL as otherwise it is
        // not done properly.
        MarinerRequestContext requestContext = pageContext.getRequestContext();
        URLRewriter sessionURLRewriter = pageContext.getSessionURLRewriter();
        MarinerURL sessionURL
            = sessionURLRewriter.mapToExternalURL(requestContext,
                           pageContext.getRequestURL(true));
View Full Code Here

        // referenced by the body content - the PackageResources' encodedURLs
        // will be non-null if dissection has been applied to the output -
        // that certain types of URL will not be packaged, depending on the
        // device policy and that assets that are thought to already be
        // cached on the device should not be resent
        MarinerRequestContext requestContext = context.getRequestContext();
        ApplicationContext ac =
            ContextInternals.getApplicationContext(requestContext);
        PackageResources pr = ac.getPackageResources();
        List encodedURLs = pr.getEncodedURLs();
        Map assetURLMap = pr.getAssetURLMap();
View Full Code Here

     *       policy values in the device
     */
    protected void outputPackage(MimeMultipart pkg,
                                 MarinerPageContext context)
        throws PackagingException {
        MarinerRequestContext requestContext = context.getRequestContext();
        ApplicationContext ac =
            ContextInternals.getApplicationContext(requestContext);
        PackageResources pr = ac.getPackageResources();

        // Final stage is setting up the message's content, content type,
View Full Code Here

                    marlinContext.getLocator());

        }

        // Get the current request context
        MarinerRequestContext requestContext = context.getRequestContext();

        PAPIElement element = elementStackEntry.element;
        PAPIAttributes attributes = elementStackEntry.attributes;

        try {
View Full Code Here

    /**
     * Calls the elementStart() method on the appropriate PAPIElement.
     * @throws SAXParseException
     */
    protected void callPAPIElementStart() throws SAXParseException {
        MarinerRequestContext requestContext = context.getRequestContext();

        PAPIElement element = elementStackEntry.element;
        PAPIAttributes attributes = elementStackEntry.attributes;

        try {
View Full Code Here

     */
    protected void callPAPIElementEnd(MarlinElementHandler handler)
            throws SAXException {

        // Get the current request context
        MarinerRequestContext requestContext = context.getRequestContext();

        PAPIElement element = elementStackEntry.element;
        PAPIAttributes attributes = elementStackEntry.attributes;

        try {
View Full Code Here

        }
    }

    // Javadoc inherited from AbstractMarlinContentHandler interface.
    public MarinerRequestContext getCurrentRequestContext() {
        MarinerRequestContext result = context.getRequestContext();
        if (result == null) {
            result = marlinContext.getInitialRequestContext();
        }
        return result;
    }
View Full Code Here

        // =====================================================================
        //   Test Expectations
        // =====================================================================

        MarinerRequestContext requestContext = new MarinerServletRequestContext(
                servletApplication.getServletContext(),
                requestMock, responseMock);

        httpSessionMock.expects
                .getAttribute(MarinerServletSessionContext.class.getName())
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.