return redirectURL;
}
public PortletURL createRenderURL(String fromURL) throws MalformedURLException {
BridgeContext bridgeContext = BridgeContext.getCurrentInstance();
PortletPhase portletRequestPhase = bridgeContext.getPortletRequestPhase();
if ((portletRequestPhase == Bridge.PortletPhase.RENDER_PHASE) ||
(portletRequestPhase == Bridge.PortletPhase.RESOURCE_PHASE)) {
try {
logger.debug("createRenderURL fromURL=[" + fromURL + "]");
MimeResponse mimeResponse = (MimeResponse) bridgeContext.getPortletResponse();
PortletURL renderURL = createRenderURL(mimeResponse);
copyRequestParameters(fromURL, renderURL);
return renderURL;
}
catch (ClassCastException e) {
throw new MalformedURLException(e.getMessage());
}
}
else {
throw new MalformedURLException("Unable to create a RenderURL during " + portletRequestPhase.toString());
}
}