public class ProxyUriBase extends Object
| 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) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cajoleContent() |
boolean |
equals(Object obj) |
protected static boolean |
getBooleanValue(String str) |
String |
getContainer() |
String |
getGadget() |
protected static Integer |
getIntegerValue(String str) |
Integer |
getRefresh() |
String |
getRewriteMimeType() |
UriStatus |
getStatus() |
int |
hashCode() |
boolean |
isDebug() |
boolean |
isNoCache() |
HttpRequest |
makeHttpRequest(Uri targetUri) |
UriBuilder |
makeQueryParams(Integer forcedRefresh,
String version)
Construct the query parameters for proxy url
|
boolean |
sanitizeContent() |
ProxyUriBase |
setCajoleContent(boolean cajole) |
void |
setFromUri(Uri uri)
Parse uri query paramaters.
|
ProxyUriBase |
setRewriteMimeType(String type) |
ProxyUriBase |
setSanitizeContent(boolean sanitize) |
Integer |
translateStatusRefresh(int longVal,
int defaultVal) |
protected ProxyUriBase(Gadget gadget)
public void setFromUri(Uri uri)
public ProxyUriBase setRewriteMimeType(String type)
public ProxyUriBase setSanitizeContent(boolean sanitize)
public ProxyUriBase setCajoleContent(boolean cajole)
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 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 defaultVal) throws GadgetException
GadgetExceptionprotected static boolean getBooleanValue(String str)
Copyright © 2007-2012. All Rights Reserved.