Package org.exoplatform.web.security.proxy

Examples of org.exoplatform.web.security.proxy.ProxyFilterService


            PortalContainer container = PortalContainer.getInstance(ctx);
            if (container == null) {
                hresp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Could not access container for servlet context "
                        + ctx.getContextPath());
            } else {
                ProxyFilterService service = (ProxyFilterService) container
                        .getComponentInstanceOfType(ProxyFilterService.class);
                if (service == null) {
                    hresp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Could not access proxy filter service "
                            + ctx.getContextPath());
                } else {
                    try {
                        URI uri = URI.create(url);
                        if (!service.accept(hreq, container, uri)) {
                            hresp.sendError(HttpServletResponse.SC_FORBIDDEN, "Gadget " + url + " is blacklisted");
                        } else {
                            chain.doFilter(req, resp);
                        }
View Full Code Here

TOP

Related Classes of org.exoplatform.web.security.proxy.ProxyFilterService

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.