Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
B
- build() - Method in class net.buildtheearth.terracore.http.Http.RequestOptions.RequestOptionsBuilder
- builder() - Static method in class net.buildtheearth.terracore.http.Http.RequestOptions
C
- cache - Variable in class net.buildtheearth.terracore.http.Http.HttpConfig
- CACHE_VERSION - Static variable in class net.buildtheearth.terracore.http.CacheEntry
- CacheEntry - Class in net.buildtheearth.terracore.http
- CacheEntry(int, long, long, long, String, String, boolean) - Constructor for class net.buildtheearth.terracore.http.CacheEntry
- CacheEntry(ByteBuf) - Constructor for class net.buildtheearth.terracore.http.CacheEntry
- CacheEntry(FullHttpResponse, URL) - Constructor for class net.buildtheearth.terracore.http.CacheEntry
- cacheFileFor(String) - Static method in class net.buildtheearth.terracore.http.Disk
-
Gets the file path which stores the cached data for the given url.
- cacheTTL - Variable in class net.buildtheearth.terracore.http.Http.HttpConfig
- CONFIG - Static variable in class net.buildtheearth.terracore.http.Http
- configChanged() - Static method in class net.buildtheearth.terracore.http.Http
- configFile(String) - Static method in class net.buildtheearth.terracore.http.Disk
-
Gets the path to an additional configuration file with the given name.
- copyResultTo(CompletableFuture<T>, CompletableFuture<T>) - Static method in class net.buildtheearth.terracore.http.Http
D
- DEFAULT_BOOTSTRAP - Static variable in class net.buildtheearth.terracore.http.Http
- DEFAULT_REQUEST_OPTIONS - Static variable in class net.buildtheearth.terracore.http.Http
- Disk - Class in net.buildtheearth.terracore.http
-
Handles disk I/O operations for
Http.
E
- etag - Variable in class net.buildtheearth.terracore.http.CacheEntry
- expireTime - Variable in class net.buildtheearth.terracore.http.CacheEntry
F
- followRedirects - Variable in class net.buildtheearth.terracore.http.Http.RequestOptions
-
If
true, we will recursively follow HTTP redirects. - followRedirects(boolean) - Method in class net.buildtheearth.terracore.http.Http.RequestOptions.RequestOptionsBuilder
-
If
true, we will recursively follow HTTP redirects. - formatUrl(Map<String, String>, String) - Static method in class net.buildtheearth.terracore.http.Http
G
- get(String) - Static method in class net.buildtheearth.terracore.http.Http
-
Asynchronously gets the contents of the given resource, with the default request options.
- get(String, Http.RequestOptions) - Static method in class net.buildtheearth.terracore.http.Http
-
Asynchronously gets the contents of the given resource.
- getFirst(String[], Http.RequestOptions, EFunction<ByteBuf, T>) - Static method in class net.buildtheearth.terracore.http.Http
-
Attempts to GET an array of URLs in order, returning the parsed response body of the first successful one.
- getSingle(String, Http.RequestOptions, EFunction<ByteBuf, T>) - Static method in class net.buildtheearth.terracore.http.Http
-
Attempts to GET a single URL.
H
- Http - Class in net.buildtheearth.terracore.http
-
Handles sending and caching of HTTP requests.
- Http.HttpConfig - Class in net.buildtheearth.terracore.http
- Http.RequestOptions - Class in net.buildtheearth.terracore.http
-
Options for controlling the behavior of outgoing HTTP requests.
- Http.RequestOptions.RequestOptionsBuilder - Class in net.buildtheearth.terracore.http
- HttpConfig() - Constructor for class net.buildtheearth.terracore.http.Http.HttpConfig
I
- isExpired(long) - Method in class net.buildtheearth.terracore.http.CacheEntry
- isStale(long) - Method in class net.buildtheearth.terracore.http.CacheEntry
L
- LIB_NAME - Static variable in class net.buildtheearth.terracore.http.Http
- LIB_URL - Static variable in class net.buildtheearth.terracore.http.Http
- LIB_VERSION - Static variable in class net.buildtheearth.terracore.http.Http
- location - Variable in class net.buildtheearth.terracore.http.CacheEntry
M
- MANAGERS - Static variable in class net.buildtheearth.terracore.http.Http
- MAX_CONTENT_LENGTH - Static variable in class net.buildtheearth.terracore.http.Http
- maxConcurrentRequests - Variable in class net.buildtheearth.terracore.http.Http.HttpConfig
N
- net.buildtheearth.terracore.http - package net.buildtheearth.terracore.http
-
Performant, asynchronous HTTP requests multiplexed over a single-threaded Netty event loop.
- NETWORK_EVENT_LOOP_GROUP - Static variable in class net.buildtheearth.terracore.http.Http
- noCache - Variable in class net.buildtheearth.terracore.http.CacheEntry
R
- read(Path) - Static method in class net.buildtheearth.terracore.http.Disk
-
Asynchronously reads a file's contents into a
ByteBuf. - readFromCache - Variable in class net.buildtheearth.terracore.http.Http.RequestOptions
-
If
true, we will attempt to load the URL from the cache before sending the request to the server. - readFromCache(boolean) - Method in class net.buildtheearth.terracore.http.Http.RequestOptions.RequestOptionsBuilder
-
If
true, we will attempt to load the URL from the cache before sending the request to the server. - reducedLogging - Variable in class net.buildtheearth.terracore.http.Http.HttpConfig
S
- setCacheRoot(File) - Static method in class net.buildtheearth.terracore.http.Disk
-
Set the directory where Terracore should store its HTTP cache files.
- setConfigRoot(File) - Static method in class net.buildtheearth.terracore.http.Disk
-
Set the directory where Terracore should look for configuration files like
osm.json5orheights.json5. - setMaximumConcurrentRequestsTo(String, int) - Static method in class net.buildtheearth.terracore.http.Http
-
Sets the maximum number of concurrent requests to the given remote host.
- SSL_CONTEXT - Static variable in class net.buildtheearth.terracore.http.Http
- staleTime - Variable in class net.buildtheearth.terracore.http.CacheEntry
- status - Variable in class net.buildtheearth.terracore.http.CacheEntry
- status - Variable in exception class net.buildtheearth.terracore.http.UnknownHttpStatusException
- status() - Method in exception class net.buildtheearth.terracore.http.UnknownHttpStatusException
- STATUS_NOT_FOUND - Static variable in class net.buildtheearth.terracore.http.CacheEntry
- STATUS_NOT_MODIFIED - Static variable in class net.buildtheearth.terracore.http.CacheEntry
- STATUS_REDIRECT - Static variable in class net.buildtheearth.terracore.http.CacheEntry
- STATUS_SUCCESS - Static variable in class net.buildtheearth.terracore.http.CacheEntry
T
- time - Variable in class net.buildtheearth.terracore.http.CacheEntry
- TIMEOUT - Static variable in class net.buildtheearth.terracore.http.Http
- toBuilder() - Method in class net.buildtheearth.terracore.http.Http.RequestOptions
- toString() - Method in class net.buildtheearth.terracore.http.Http.RequestOptions.RequestOptionsBuilder
- touch(HttpHeaders) - Method in class net.buildtheearth.terracore.http.CacheEntry
U
- UnknownHttpStatusException - Exception Class in net.buildtheearth.terracore.http
-
Used as the failure cause for requests issued from
Httpwhen an unknown HTTP status code is encountered. - UnknownHttpStatusException(HttpResponseStatus, URL) - Constructor for exception class net.buildtheearth.terracore.http.UnknownHttpStatusException
- URL_FORMATTING_MATCHER_CACHE - Static variable in class net.buildtheearth.terracore.http.Http
- userAgent() - Static method in class net.buildtheearth.terracore.http.Http
- userAgent(String) - Static method in class net.buildtheearth.terracore.http.Http
W
- withStatus(int) - Method in class net.buildtheearth.terracore.http.CacheEntry
- write(ByteBuf) - Method in class net.buildtheearth.terracore.http.CacheEntry
- write(Path, ByteBuf) - Static method in class net.buildtheearth.terracore.http.Disk
-
Asynchronously writes a file's contents, replacing the existing file if it already exists.
- writeToCache - Variable in class net.buildtheearth.terracore.http.Http.RequestOptions
-
If
true, we will store the received HTTP response body in the cache. - writeToCache(boolean) - Method in class net.buildtheearth.terracore.http.Http.RequestOptions.RequestOptionsBuilder
-
If
true, we will store the received HTTP response body in the cache.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form