Examples of rewriteURLWithPageURLRewriter()


Examples of com.volantis.mcs.protocols.assets.implementation.AssetResolver.rewriteURLWithPageURLRewriter()

            // image must be convert
            if (url != null
                    && imageMetaData.getConversionMode() ==
                        ImageConversionMode.ALWAYS_CONVERT) {
                url = assetResolver.rewriteURLWithPageURLRewriter(url,
                        PageURLType.IMAGE);

                attributes.setConvertibleImageAsset(true);               
            }
        }
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.AssetResolver.rewriteURLWithPageURLRewriter()

        String url = resolver.retrieveVariantURLAsString(selectedVariant);
        if (url == null) {
            return;
        }

        url = resolver.rewriteURLWithPageURLRewriter(url, PageURLType.IMAGE);

        ImageAttributes imageAttributes = new ImageAttributes();

        BaseLocation location = resolver.getBaseLocation(selectedVariant);
        imageAttributes.setLocalSrc(location == BaseLocation.DEVICE);
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.AssetResolver.rewriteURLWithPageURLRewriter()

                // If the URL possibly is to be rewritten using page URI
                // rewriter, rewrite the URL in-place, since at the moment the
                // getUrl() method would be invoked, the page context would
                // change and the page URI rewriter would return different
                // result than expected.
                url = assetResolver.rewriteURLWithPageURLRewriter(url, PageURLType.ANCHOR);

                try {
                    url = uriRewriter.rewrite(new URI(url), PageURLType.ANCHOR).toString();
                } catch (URISyntaxException e) {
                    throw new XDIMEException("Invalid URI: " + url, e);
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.