*/
public class CleanPathInfoEncodedNavStateFromPortalURLValve extends AbstractValve
{
public void invoke(RequestContext request, ValveContext context) throws PipelineException
{
NavigationalState state = request.getPortalURL().getNavigationalState();
PortalURL portalURL = request.getPortalURL();
Boolean desktopEnabled = (Boolean) request.getAttribute(JetspeedDesktop.DESKTOP_ENABLED_REQUEST_ATTRIBUTE);
if (request.getRequest().getMethod().equals("GET") && portalURL.hasEncodedNavState()
&& portalURL.isPathInfoEncodingNavState() && state.isNavigationalParameterStateFull()
&& state.isRenderParameterStateFull() && state.getPortletWindowOfAction() == null
&& state.getPortletWindowOfResource() == null
&& (desktopEnabled == null || desktopEnabled.booleanValue() == false))
{
try
{
StringBuffer location = new StringBuffer(request.getPortalURL().getBasePath());