Package org.apache.shale.util

Examples of org.apache.shale.util.TokenProcessor.generate()


        // Generate a new token value and cache it for reuse if the
        // current view is rerendered
        FacesContext context = FacesContext.getCurrentInstance();
        TokenProcessor tp = getTokenProcessor(context);
        String token = tp.generate(context);
        getAttributes().put(TOKEN_ATTRIBUTE_KEY, token);
        if (log.isDebugEnabled()) {
            log.debug("Generating token '" + token + "'");
        }
        return token;
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.