Examples of selectBestVariant()


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

        RuntimePolicyReference runtimePolicyReference =
                createPolicyReference(reference);

        final AssetResolver resolver = pageContext.getAssetResolver();
        SelectedVariant selected = resolver.selectBestVariant(
                runtimePolicyReference, getEncodingCollection(encoding));

        BestVariant best;
        if (selected == null) {
            best = null;
View Full Code Here

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

        MarinerPageContext pageContext = protocol.getMarinerPageContext();

        AssetResolver resolver = pageContext.getAssetResolver();

        SelectedVariant selectedVariant =
                resolver.selectBestVariant(reference, null);

        String url = resolver.retrieveVariantURLAsString(selectedVariant);
        if (url == null) {
            return;
        }
View Full Code Here

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

                                imageComponentName, PolicyType.IMAGE);

                AssetResolver assetResolver = pageContext.getAssetResolver();

                SelectedVariant selected =
                        assetResolver.selectBestVariant(reference, null);

                // Try and find the best image asset with the specified name.
                if (selected != null) {
                    ImageAsset imageAsset =
                            (ImageAsset) selected.getOldObject();
View Full Code Here

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

                            audioComponentName, PolicyType.AUDIO);

            AssetResolver assetResolver = pageContext.getAssetResolver();

            // Only supports AMR encoding at the moment.
            SelectedVariant selected = assetResolver.selectBestVariant(
                    reference, ENCODING_COLLECTION);
            if (selected != null) {
                usePolicy(pageContext, selected, attributes);
            }
        }
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.