public static enum BufferedProxySelector.CacheScope extends Enum<BufferedProxySelector.CacheScope>
| Enum Constant and Description |
|---|
CACHE_SCOPE_HOST
Cache keys are generated by
uri.getHost(). |
CACHE_SCOPE_HOST_PORT
Cache keys are generated by
uri.getHost() + ":" + uri.getPort(). |
CACHE_SCOPE_URL
Cache keys are generated by
uri.toString(). |
| Modifier and Type | Method and Description |
|---|---|
static BufferedProxySelector.CacheScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BufferedProxySelector.CacheScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BufferedProxySelector.CacheScope CACHE_SCOPE_HOST
uri.getHost().public static final BufferedProxySelector.CacheScope CACHE_SCOPE_HOST_PORT
uri.getHost() + ":" + uri.getPort().public static final BufferedProxySelector.CacheScope CACHE_SCOPE_URL
uri.toString().public static BufferedProxySelector.CacheScope[] values()
for (BufferedProxySelector.CacheScope c : BufferedProxySelector.CacheScope.values()) System.out.println(c);
public static BufferedProxySelector.CacheScope valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020. All rights reserved.