Package org.apache.pluto.spi

Examples of org.apache.pluto.spi.ResourceURLProvider


                while (redirectResponse instanceof HttpServletResponseWrapper) {
                    redirectResponse = (HttpServletResponse)
                        ((HttpServletResponseWrapper)redirectResponse).getResponse();
                }

                ResourceURLProvider provider = callback.getResourceURLProvider(
                                getHttpServletRequest(),
                                getInternalPortletWindow()
                );

                if (location.indexOf("://") != -1) {
                    provider.setAbsoluteURL(location);
                } else {
                    provider.setFullPath(location);
                }
                location =
                redirectResponse.encodeRedirectURL(provider.toString());
                //redirectResponse.sendRedirect(location);
                redirectLocation = location;
                redirected = true;
            }
        } else {
View Full Code Here


        if (path.indexOf("://") == -1 && !path.startsWith("/")) {
            throw new IllegalArgumentException(
                "only absolute URLs or full path URIs are allowed");
        }
       
        ResourceURLProvider provider = getContainer()
            .getRequiredContainerServices()
            .getPortalCallbackService()
            .getResourceURLProvider(
                httpServletRequest,
                internalPortletWindow);
        if (path.indexOf("://") != -1) {
            provider.setAbsoluteURL(path);
        } else {
            provider.setFullPath(path);
        }
        return getHttpServletResponse().encodeURL(provider.toString());
    }
View Full Code Here

                while (redirectResponse instanceof HttpServletResponseWrapper) {
                    redirectResponse = (HttpServletResponse)
                        ((HttpServletResponseWrapper)redirectResponse).getResponse();
                }

                ResourceURLProvider provider = callback.getResourceURLProvider(
                                getHttpServletRequest(),
                                getInternalPortletWindow()
                );

                if (location.indexOf("://") != -1) {
                    provider.setAbsoluteURL(location);
                } else {
                    provider.setFullPath(location);
                }
                location =
                redirectResponse.encodeRedirectURL(provider.toString());
                //redirectResponse.sendRedirect(location);
                redirectLocation = location;
                redirected = true;
            }
        } else {
View Full Code Here

        if (path.indexOf("://") == -1 && !path.startsWith("/")) {
            throw new IllegalArgumentException(
                "only absolute URLs or full path URIs are allowed");
        }
       
        ResourceURLProvider provider = getContainer()
            .getRequiredContainerServices()
            .getPortalCallbackService()
            .getResourceURLProvider(
                httpServletRequest,
                internalPortletWindow);
        if (path.indexOf("://") != -1) {
            provider.setAbsoluteURL(path);
        } else {
            provider.setFullPath(path);
        }
        return getHttpServletResponse().encodeURL(provider.toString());
    }
View Full Code Here

                !path.startsWith( wsrpRewriteToken ) ) {
            throw new IllegalArgumentException(
                "only absolute URLs or full path URIs are allowed");
        }

        ResourceURLProvider provider = getContainer()
            .getRequiredContainerServices()
            .getPortalCallbackService()
            .getResourceURLProvider(
                httpServletRequest,
                internalPortletWindow);

        if (isAbsolute(path)) {           
            provider.setAbsoluteURL(path);
        } else {           
            provider.setFullPath(path);
        }

        return getHttpServletResponse().encodeURL(provider.toString());
    }
View Full Code Here

        if (path.indexOf("://") == -1 && !path.startsWith("/")) {
            throw new IllegalArgumentException(
                "only absolute URLs or full path URIs are allowed");
        }

        ResourceURLProvider provider = getContainer()
            .getRequiredContainerServices()
            .getPortalCallbackService()
            .getResourceURLProvider(
                httpServletRequest,
                internalPortletWindow);
        if (path.indexOf("://") != -1) {
            provider.setAbsoluteURL(path);
        } else {
            provider.setFullPath(path);
        }
        return getHttpServletResponse().encodeURL(provider.toString());
    }
View Full Code Here

TOP

Related Classes of org.apache.pluto.spi.ResourceURLProvider

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.