public class ProxyUriBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
extensionParams
Extension parameters to support implementation specific flags
|
| Modifier | Constructor and Description |
|---|---|
protected |
ProxyUriBase(Gadget gadget) |
protected |
ProxyUriBase(UriStatus status,
Integer refresh,
boolean debug,
boolean noCache,
String container,
String gadget) |
protected |
ProxyUriBase(UriStatus status,
Uri origUri) |
protected ProxyUriBase(Gadget gadget)
public void setFromUri(Uri uri)
protected static boolean getTruthyValue(String str)
public ProxyUriBase setRewriteMimeType(String type)
public ProxyUriBase setSanitizeContent(boolean sanitize)
public ProxyUriBase setCajoleContent(boolean cajole)
public ProxyUriBase setGadget(String gadget)
public UriStatus getStatus()
public Integer getRefresh()
public boolean isDebug()
public boolean isNoCache()
public String getContainer()
public String getGadget()
public String getRewriteMimeType()
public boolean sanitizeContent()
public boolean cajoleContent()
public ProxyUriBase setExtensionParams(Map<String,String> extensionParams)
public HttpRequest makeHttpRequest(Uri targetUri) throws GadgetException
GadgetExceptionpublic UriBuilder makeQueryParams(Integer forcedRefresh, String version)
forcedRefresh - optional overwrite the refresh timeversion - optional versionpublic Integer translateStatusRefresh(int longVal, int originalResourceTtl) throws GadgetException
longVal - long expiry for versioned resourceoriginalResourceTtl - original resource ttl, to be served fro unversion resourceGadgetExceptionprotected static boolean getBooleanValue(String str)
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.