javax.servlet.http.HttpServletResponse redirectResponse = _getHttpServletResponse();
while (redirectResponse instanceof javax.servlet.http.HttpServletResponseWrapper) {
redirectResponse = (javax.servlet.http.HttpServletResponse)
((javax.servlet.http.HttpServletResponseWrapper)redirectResponse).getResponse();
}
ResourceURLProvider provider = InformationProviderAccess.getDynamicProvider(getHttpServletRequest()).getResourceURLProvider(getInternalPortletWindow());
if (location.indexOf("://") != -1) {
provider.setAbsoluteURL(location);
} else if (location.startsWith("/")) {
provider.setFullPath(location);
} else {
throw new IllegalArgumentException("Only absolute and full path URLs are allowed. The relative path '" + location+"' is not valid.");
}
location = redirectResponse.encodeRedirectURL(provider.toString());
//redirectResponse.sendRedirect(location);
redirectLocation = location;
redirected = true;
}
} else