Package com.google.common.escape

Examples of com.google.common.escape.Escaper


                if (getServletContext().getAttribute(User.NODE_APPLICATION_CONTEXT_KEY + oldNodeId) == null) {
                    // the application context associated with the node id doesn't exist so log user out.
                    SecurityContextHolder.clearContext();
                } else if (_location != null) {
                    if (oldNodeId != null && !oldNodeId.equals(nodeId)) {
                        final Escaper escaper = UrlEscapers.urlFormParameterEscaper();
                        final String location = getServletContext().getContextPath() + _location.replace("@@lang@@", escaper.escape(lang))
                                .replace("@@nodeId@@", escaper.escape(nodeId))
                                .replace("@@redirectedFrom@@", escaper.escape(redirectedFrom))
                                .replace("@@oldNodeId@@", escaper.escape(oldNodeId))
                                .replace("@@oldUserName@@", escaper.escape(user.getName()));

                        String requestURI = httpServletRequest.getRequestURI();
                        // drop the ! at the end so we can view the xml of the warning page
                        if (requestURI.endsWith("!")) {
                            requestURI = requestURI.substring(0, requestURI.length() - 1);
View Full Code Here

TOP

Related Classes of com.google.common.escape.Escaper

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.