org.apache.shindig.gadgets.render
Class ProxyRenderer

java.lang.Object
  extended by org.apache.shindig.gadgets.render.ProxyRenderer

public class ProxyRenderer
extends Object

Implements proxied rendering.


Field Summary
static String PATH_PARAM
           
static String UA_IDENT
           
 
Constructor Summary
ProxyRenderer(RequestPipeline requestPipeline, HttpCache httpCache, PipelineExecutor pipelineExecutor)
           
 
Method Summary
protected  String getUAIdent()
          Returns the program name which will be added at the end of the User-Agent string, to identify the gadget server.
 String render(Gadget gadget)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_PARAM

public static final String PATH_PARAM
See Also:
Constant Field Values

UA_IDENT

public static final String UA_IDENT
See Also:
Constant Field Values
Constructor Detail

ProxyRenderer

@Inject
public ProxyRenderer(RequestPipeline requestPipeline,
                            HttpCache httpCache,
                            PipelineExecutor pipelineExecutor)
Parameters:
requestPipeline - Used for performing the proxy request. Always ignores caching because we want to skip preloading when the object is in the cache.
httpCache - The shared http cache. Used before checking the request pipeline to determine whether to perform the preload / fetch cycle.
Method Detail

render

public String render(Gadget gadget)
              throws RenderingException,
                     GadgetException
Throws:
RenderingException
GadgetException

getUAIdent

protected String getUAIdent()
Returns the program name which will be added at the end of the User-Agent string, to identify the gadget server.



Copyright © 2007-2012. All Rights Reserved.