public class BasicDownloadTargets extends java.lang.Object implements DownloadResolverManager.DownloadTargets
Modifier and Type | Class and Description |
---|---|
static class |
BasicDownloadTargets.Builder |
Modifier and Type | Method and Description |
---|---|
static BasicDownloadTargets.Builder |
builder() |
boolean |
canContinueResolving()
Indicates whether or not the results of this resolver are the last that should be used.
|
static DownloadResolverManager.DownloadTargets |
empty() |
java.util.List<java.lang.String> |
getFallbackLocations()
Gets the locations to try (in-order), to be used only after all primary locations
have been tried.
|
java.util.List<java.lang.String> |
getPrimaryLocations()
Gets the locations to try (in-order).
|
java.lang.String |
toString() |
public static DownloadResolverManager.DownloadTargets empty()
public static BasicDownloadTargets.Builder builder()
public java.util.List<java.lang.String> getPrimaryLocations()
DownloadResolverManager.DownloadTargets
getPrimaryLocations
in interface DownloadResolverManager.DownloadTargets
public java.util.List<java.lang.String> getFallbackLocations()
DownloadResolverManager.DownloadTargets
getFallbackLocations
in interface DownloadResolverManager.DownloadTargets
public boolean canContinueResolving()
DownloadResolverManager.DownloadTargets
resolve(EntityDriver)
will not iterate over any other resolvers.
For example, useful in an enterprise to disable any other resolvers that would have
resulted in going out to the public internet.canContinueResolving
in interface DownloadResolverManager.DownloadTargets
public java.lang.String toString()
toString
in class java.lang.Object