public class HttpRequestUrl
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildResourceUrl(java.lang.String host,
java.lang.String resourceUrl,
int querySize,
boolean offline)
Adapts a resource request url based on the host, query size, and offline requirement.
|
public static java.lang.String buildResourceUrl(@NonNull java.lang.String host, java.lang.String resourceUrl, int querySize, boolean offline)
host
- the host used as endpointresourceUrl
- the resource to downloadquerySize
- the query size of the resource requestoffline
- the type of resource, either offline or online