Package com.volantis.mcs.context

Examples of com.volantis.mcs.context.MarinerRequestContext.release()


                    characterEncoding);
            rawMessage.setBaseURL( new URL( baseUrl ) );
            rawMessage.setMaxFileSize( applicationContext.getMaxFileSize() );
            rawMessage.setMaxMMSize( applicationContext.getMaxMMSize() );

            requestContext.release();
        } catch (SAXException se) {
            Exception cause = se.getException();
            // Check the root cause of the SAXException, as it may not be
            // logged correctly.
            if (cause != null) {
View Full Code Here


        // Get the name of the form from the vform parameter
        String formSpecifier = (String) request.getParameter("vform");

        if (formSpecifier == null) {
            logger.error("form-name-missing");
            requestContext.release();
            throw new ServletException("No vform parameter passed.");
        }

        // Determine which URL to go to from which submission
        // button was pressed to get here
View Full Code Here

        if (logger.isDebugEnabled()) {
            logger.debug("Target URL is " + targetURL);
        }

        if (targetURL == null) {
            requestContext.release();
            throw new ServletException("No target URL for dispatch.");
        }

        // Strip the context path from the front of the target URL if it is
        // there
View Full Code Here

        rd.forward(requestWrapper, forwardResponse);

        // Release the request context so that it is not detected as the
        // enclosing request context when processing the XDIME. If it was, it
        // would use the original requets URL
        requestContext.release();
        // See if we need to perform additional processing or not
        if (xdimeRequestProcessor != null) {
            if (xdimeRequestProcessor.isXDIME(
                    responseWrapper.getMimeTypeFromContentType())) {
                // We have found raw XDIME which must be converted into the
View Full Code Here

                // ensure that the real response is populated from the wrapper
                responseWrapper.writeTo(response);
            }
        }

        requestContext.release();
    }

    /**
     * Processes the raw XDIME in the wrapped response through MCS in order to
     * generate the required channelized final response.
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.