public class DefaultProxyUriManager extends Object implements ProxyUriManager
ProxyUriManager.ProxyUri, ProxyUriManager.Versioner| Modifier and Type | Field and Description |
|---|---|
static String |
PROXY_HOST_PARAM |
static String |
PROXY_PATH_PARAM |
| Constructor and Description |
|---|
DefaultProxyUriManager(ContainerConfig config,
ProxyUriManager.Versioner versioner) |
| Modifier and Type | Method and Description |
|---|---|
List<Uri> |
make(List<ProxyUriManager.ProxyUri> resources,
Integer forcedRefresh)
Generate a Uri that proxies the given resource Uri.
|
ProxyUriManager.ProxyUri |
process(Uri uriIn)
Parse and validate the proxied Uri.
|
void |
setUseStrictParsing(boolean useStrict) |
public static final String PROXY_HOST_PARAM
public static final String PROXY_PATH_PARAM
@Inject public DefaultProxyUriManager(ContainerConfig config, @Nullable ProxyUriManager.Versioner versioner)
@Inject(optional=true) public void setUseStrictParsing(boolean useStrict)
public List<Uri> make(List<ProxyUriManager.ProxyUri> resources, Integer forcedRefresh)
ProxyUriManagermake in interface ProxyUriManagerresources - Resource Uri to proxyforcedRefresh - Forced expires value to use for resourcepublic ProxyUriManager.ProxyUri process(Uri uriIn) throws GadgetException
ProxyUriManagerprocess in interface ProxyUriManageruriIn - A Uri presumed to be a proxied Uri generated
by this class or in a compatible wayGadgetExceptionCopyright © 2007-2012. All Rights Reserved.