Package org.apache.jetspeed.security.mfa.util

Examples of org.apache.jetspeed.security.mfa.util.ServerData


        if (captchaConfig.isUseImageBackground())
        {
            captcha.setBackgroundImage(this.background);
        }       
        FileOutputStream fs = null;
        ServerData url = new ServerData(request);
        String imageUrl =  url.getBasePath() + url.getContextPath() + captchaConfig.getDirectory() + "/" + captcha.getImageId() + captchaConfig.getImageFormat();       
        captcha.setImageURL(imageUrl);
        String imagePath = this.captchasRealPath + "/" + captcha.getImageId() + captchaConfig.getImageFormat();
       
        captcha.init();
       
View Full Code Here


    }
   
    public TextToSpeechBean createTextToSpeech(HttpServletRequest request, String text)
    {
        TextToSpeechBean tts = new TextToSpeechBeanImpl(text);
        ServerData url = new ServerData(request);
        String audioUrl =  url.getBasePath() + url.getContextPath() + ttsConfig.getDirectory() + "/" + tts.getAudioId() + ttsConfig.getImageFormat();       
        tts.setAudioURL(audioUrl);
        play(tts);
        return tts;
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.security.mfa.util.ServerData

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.