Package com.volantis.mcs.integration

Examples of com.volantis.mcs.integration.AssetURLRewriter


            if (marinerURL != null) {
                imageEncodingString = marinerURL.getParameterValue("mcs.ie");
            }
        }

        AssetURLRewriter defaultAssetURLRewriter =
            getVolantisBean(requestContext).getAssetURLRewriter();
       
        MarinerURL rewrittenURL =
            defaultAssetURLRewriter.rewriteAssetURL(requestContext,
                                                    asset,
                                                    assetGroup,
                                                    marinerURL);
        // We do not want to mime encode links
        if (asset instanceof LinkAsset) {
View Full Code Here


            if (marinerURL != null) {
                imageEncodingString = marinerURL.getParameterValue("mcs.ie");
            }
        }
       
        AssetURLRewriter defaultAssetURLRewriter =
            getVolantisBean(requestContext).getAssetURLRewriter();
       
        MarinerURL rewrittenURL =
            defaultAssetURLRewriter.rewriteAssetURL(requestContext,
                                                    asset,
                                                    assetGroup,
                                                    marinerURL);
       
        // We do not want to mime encode links
View Full Code Here

            // 4. have a public zero argument constructor
            // 5. be a thread safe implementation (this cannot be checked)
            try {
                Class customClass =
                    Class.forName(customAssetURLRewriterConfig);
                AssetURLRewriter rewriter =
                    (AssetURLRewriter)customClass.newInstance();

                rewriters.add(rewriter);
            } catch (ClassNotFoundException e) {
                logger.error("custom-asset-url-rewriter-missing", e);
View Full Code Here

                                      MarinerURL marinerURL)
        throws RepositoryException {
        MarinerURL url = marinerURL;
        int i;
        int size = rewriters.size();
        AssetURLRewriter rewriter;

        // Execute the chain of rewriters to generate the final asset URL
        for (i = 0;
             i < size;
             i++) {
            rewriter = (AssetURLRewriter)rewriters.get(i);
            url = rewriter.rewriteAssetURL(requestContext,
                                           asset,
                                           assetGroup,
                                           url);
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.integration.AssetURLRewriter

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.