Package com.volantis.mcs.integration

Examples of com.volantis.mcs.integration.ImageURLModifier


        applicationContext.setProtocol(protocol);
        applicationContext.setDissectionSupported(false);
        applicationContext.setFragmentationSupported(false);
        applicationContext.setCanvasTagSupported(false);
        applicationContext.setEncodingManager(encodingManager);
        applicationContext.setImageURLModifier(new ImageURLModifier() {
            public void modifyImageURL(StringBuffer imageURLString,
                                         ImageURLModifierDetails imageURLModifierDetails) {

                if(imageURLModifierDetails.getMaxImageSize()!=null &&
                        !"-1".equals(imageURLModifierDetails.getMaxImageSize())) {
View Full Code Here


                throw new RepositoryException(e);
            }

            // Allow the ImageURLModifier (if there is one) in the
            // ApplicationContext to modify the image url.
            ImageURLModifier ium = applicationContext.getImageURLModifier();
            if (ium != null) {
                ImageURLModifierDetails details =
                        new ImageURLModifierDetails();
                details.setMaxImageSize(device.getPolicyValue("maxmmsize"));
                details.setEncoding(transcodingRule.getEncoding());

                ium.modifyImageURL(value, details);
            }

            newURL = value.toString();
        }
View Full Code Here

TOP

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

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.