public class ProxyRenderer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_PARAM |
static String |
UA_IDENT |
| Constructor and Description |
|---|
ProxyRenderer(RequestPipeline requestPipeline,
HttpCache httpCache,
PipelineExecutor pipelineExecutor) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final String PATH_PARAM
public static final String UA_IDENT
@Inject public ProxyRenderer(RequestPipeline requestPipeline, HttpCache httpCache, PipelineExecutor pipelineExecutor)
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.public String render(Gadget gadget) throws RenderingException, GadgetException
RenderingExceptionGadgetExceptionprotected String getUAIdent()
Copyright © 2007-2012. All Rights Reserved.