Package com.volantis.mcs.context

Examples of com.volantis.mcs.context.MarinerRequestContext


        // as 'title.1' or 'title.2.3' in which case the string is treated in
        // the same way as before.
        FormatReference ref = null;
        if (formatRef.startsWith("{") && formatRef.endsWith("}")) {
            stem = formatRef.substring(1, formatRef.length() - 1);
            MarinerRequestContext mrc = pageContext.getRequestContext();
            ExpressionContext ec =
                    MCSExpressionHelper.getExpressionContext(mrc);

            try {
                Expression expr = MCSExpressionHelper.createUnquotedExpression(
View Full Code Here


    public String getInclusionPath() {
        return pageContext.getDeviceLayoutContext().getInclusionPath();
    }

    public boolean isFragmentationSupported() {
        MarinerRequestContext requestContext = pageContext.getRequestContext();
        ApplicationContext applicationContext =
                ContextInternals.getApplicationContext(requestContext);
        return applicationContext.isFragmentationSupported();
    }
View Full Code Here

            StyleSheetRenderer renderer = getStyleSheetRenderer();
            MarinerPageContext marinerPageContext = getMarinerPageContext();

            // todo better detect empty style sheet here and avoid rendering,
            // and also remove dubious check for empty in renderStyleSheet?
            MarinerRequestContext requestContext =
                marinerPageContext.getRequestContext();
            com.volantis.mcs.css.renderer.RendererContext runtimeCSSRendererContext =
                    new RuntimeRendererContext(cssStringWriter,
                            renderer, this,
                            getProtocolConfiguration().getCssVersion());
View Full Code Here

            MapAttributes attributes)
    throws XDIMEException{
       
        boolean written = false;

        MarinerRequestContext requestContext =
        context.getInitialRequestContext();
       
       
        ImageAttributes imageAttributes = attributes.getImageAttributes();
        if(imageAttributes == null){
View Full Code Here

        MarinerURL marinerRequestURL =
            new MarinerURL("http://localhost/volantis/test.jsp");
        RequestHeaders requestHeaders = null;

        // Get the parent request context if there is one.
        MarinerRequestContext parentRequest = null;
        if (parent != null) {
            parentRequest = parent.getRequestContext();
        }
        // Initialise expression context.
View Full Code Here

     * @param request
     * @return FormDataManager
     */
    private FormDataManager getFormDataManager(HttpServletRequest request)
    {
        MarinerRequestContext requestContext
                    = MarinerServletRequestContext.getCurrent( request );
        MarinerPageContext pageContext =
                    ContextInternals.getMarinerPageContext(requestContext);
        return pageContext.getFormDataManager();      
    }
View Full Code Here

   
    private void doImageRequest(XDIMEContextInternal context,
            ObjectAttribute objectAttribute) throws XDIMEException {
       
        try {
            MarinerRequestContext requestContext = context
                    .getInitialRequestContext();

            MarinerPageContext pageContext = ContextInternals
                    .getMarinerPageContext(context.getInitialRequestContext());
View Full Code Here

                                          requestValue);
        }

        // Get the URLRewriter to use to encode session information in the
        // URL and use it.
        MarinerRequestContext requestContext = pageContext.getRequestContext();
        URLRewriter sessionURLRewriter = pageContext.getSessionURLRewriter();
        MarinerURL sessionURL
                = sessionURLRewriter.mapToExternalURL(requestContext,
                                                      rootPageURL);
View Full Code Here

        WMLCDeviceSupport wmlcSupported =
            WMLCDeviceSupport.getMode(context.getRequestContext());

        // Calculate if this device request (including headers) can result in
        // WMLC generation.
        MarinerRequestContext requestContext = context.getRequestContext();
        ApplicationContext appContext =
            ContextInternals.getApplicationContext(requestContext);
        if (wmlcSupported == WMLCDeviceSupport.WML) {
            // Device says no WMLC
            willGenerateWMLC = false;
View Full Code Here

    // --------------------------------------------------------------------------

    protected void writeDocument(PackageBodyOutput output)
        throws IOException, ProtocolException {

        MarinerRequestContext requestContext = context.getRequestContext();
        ApplicationContext appContext =
            ContextInternals.getApplicationContext(requestContext);

        // If the accept headers indicate that WMLC is supported, create a
        // WBXML producer. If not, default to WMLProducer.
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.