org.apache.jetspeed.desktop.impl
Class DesktopEncoderRedirectValveImpl

java.lang.Object
  extended by org.apache.jetspeed.pipeline.valve.AbstractValve
      extended by org.apache.jetspeed.desktop.impl.DesktopEncoderRedirectValveImpl
All Implemented Interfaces:
org.apache.jetspeed.pipeline.valve.Valve

public class DesktopEncoderRedirectValveImpl
extends AbstractValve

DesktopEncoderRedirect Valve if request parameter encoder=desktop is NOT defined, redirect to same url with /desktop pipeline, otherwise, just invoke next valve Used by the /render pipeline (desktop-render-pipeline) to allow render requests that are not initiated via desktop javascript code to result in a page level navigation to the /desktop pipeline with the correct portlet rendering indicated in the original url. The encoder=desktop request parameter is used by desktop javascript code to indicate that the request is an "official" desktop ajax request.

Version:
$Id: $
Author:
Steve Milek

Field Summary
private  String desktopPipelinePath
           
private  String desktopRenderPipelinePath
           
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
DesktopEncoderRedirectValveImpl(String desktopPipelinePath, String desktopRenderPipelinePath)
           
 
Method Summary
 void invoke(org.apache.jetspeed.request.RequestContext request, org.apache.jetspeed.pipeline.valve.ValveContext context)
           
 String toString()
           
 
Methods inherited from class org.apache.jetspeed.pipeline.valve.AbstractValve
initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log

desktopPipelinePath

private String desktopPipelinePath

desktopRenderPipelinePath

private String desktopRenderPipelinePath
Constructor Detail

DesktopEncoderRedirectValveImpl

public DesktopEncoderRedirectValveImpl(String desktopPipelinePath,
                                       String desktopRenderPipelinePath)
Method Detail

invoke

public void invoke(org.apache.jetspeed.request.RequestContext request,
                   org.apache.jetspeed.pipeline.valve.ValveContext context)
            throws org.apache.jetspeed.pipeline.PipelineException
Specified by:
invoke in interface org.apache.jetspeed.pipeline.valve.Valve
Specified by:
invoke in class AbstractValve
Throws:
org.apache.jetspeed.pipeline.PipelineException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.