A B C D E F G H I J K L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addProvider(JsonMappingProvider) - Static method in interface io.github.nstdio.http.ext.spi.JsonMappingProvider
-
Adds
provider
. - allowInsecure(boolean) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
-
Sets the flag whether client accept requests with
http
scheme. - authenticator() - Method in class io.github.nstdio.http.ext.ExtendedHttpClient
- authenticator(Authenticator) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
B
- BodyHandlers - Class in io.github.nstdio.http.ext
-
Implementations of
BodyHandler
's. - BodyHandlers.DecompressingBodyHandlerBuilder - Class in io.github.nstdio.http.ext
-
The builder for decompressing body handler.
- BodyPublishers - Class in io.github.nstdio.http.ext
-
Implementations of various useful
HttpRequest.BodyPublisher
s. - bodySize() - Method in interface io.github.nstdio.http.ext.Cache.CacheEntry
- BodySubscribers - Class in io.github.nstdio.http.ext
- build() - Method in class io.github.nstdio.http.ext.BodyHandlers.DecompressingBodyHandlerBuilder
-
Creates the new decompressing body handler.
- build() - Method in interface io.github.nstdio.http.ext.Cache.CacheBuilder
-
Creates a
Cache
instance. - build() - Method in class io.github.nstdio.http.ext.Cache.DiskCacheBuilder
- build() - Method in class io.github.nstdio.http.ext.Cache.InMemoryCacheBuilder
- build() - Method in class io.github.nstdio.http.ext.CacheControl.CacheControlBuilder
- build() - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
- build(HttpResponse.BodyHandler<T>) - Method in class io.github.nstdio.http.ext.BodyHandlers.DecompressingBodyHandlerBuilder
-
Creates the new decompressing body handler.
- builder() - Static method in class io.github.nstdio.http.ext.CacheControl
C
- cache(Cache) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
-
Sets the cache.
- Cache - Interface in io.github.nstdio.http.ext
- Cache.CacheBuilder - Interface in io.github.nstdio.http.ext
-
The strategy for creating cache instances.
- Cache.CacheEntry - Interface in io.github.nstdio.http.ext
- Cache.CacheStats - Interface in io.github.nstdio.http.ext
- Cache.DiskCacheBuilder - Class in io.github.nstdio.http.ext
-
The builder for in persistent cache.
- Cache.EncryptedDiskCacheBuilder - Class in io.github.nstdio.http.ext
-
The
Cache.DiskCacheBuilder
that will createCache
that maintains all files in encrypted manner. - Cache.InMemoryCacheBuilder - Class in io.github.nstdio.http.ext
-
The builder for in memory cache.
- Cache.Writer<T> - Interface in io.github.nstdio.http.ext
- CacheControl - Class in io.github.nstdio.http.ext
- CacheControl.CacheControlBuilder - Class in io.github.nstdio.http.ext
- CacheEntryMetadata - Class in io.github.nstdio.http.ext
- cipherAlgorithm(String) - Method in class io.github.nstdio.http.ext.Cache.EncryptedDiskCacheBuilder
-
The cipher algorithm to use.
- Classpath - Class in io.github.nstdio.http.ext.spi
- CompressionFactory - Interface in io.github.nstdio.http.ext.spi
-
The strategy to create on-the-fly decompressing
InputStream
. - connectTimeout() - Method in class io.github.nstdio.http.ext.ExtendedHttpClient
- connectTimeout(Duration) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
- cookieHandler() - Method in class io.github.nstdio.http.ext.ExtendedHttpClient
- cookieHandler(CookieHandler) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
D
- decompressing(InputStream, String) - Method in interface io.github.nstdio.http.ext.spi.CompressionFactory
-
Wraps the provided
InputStream
into stream capable of decompressingCompressionFactory.supported()
compression algorithms. - decompressing(InputStream, String) - Method in class io.github.nstdio.http.ext.spi.JdkCompressionFactory
- DecompressingBodyHandlerBuilder() - Constructor for class io.github.nstdio.http.ext.BodyHandlers.DecompressingBodyHandlerBuilder
-
Creates the
DecompressingBodyHandlerBuilder
instance withBodyHandlers.DecompressingBodyHandlerBuilder.failOnUnsupportedDirectives
andBodyHandlers.DecompressingBodyHandlerBuilder.failOnUnknownDirectives
enabled. - decompressingBuilder() - Static method in class io.github.nstdio.http.ext.BodyHandlers
-
Creates new
DecompressingBodyHandlerBuilder
instance. - defaultHeader(String, String) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
-
Provided header will be included on each request.
- defaultHeader(String, Supplier<String>) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
-
Provided header will be included on each request.
- dir(Path) - Method in class io.github.nstdio.http.ext.Cache.DiskCacheBuilder
-
Sets the directory to store cache files.
E
- encrypted() - Method in class io.github.nstdio.http.ext.Cache.DiskCacheBuilder
-
Creates a new
EncryptedDiskCacheBuilder
instance which will createCache
that stores all cache files encrypted by provided keys. - encrypted() - Method in class io.github.nstdio.http.ext.Cache.EncryptedDiskCacheBuilder
-
Creates a new
EncryptedDiskCacheBuilder
instance which will createCache
that stores all cache files encrypted by provided keys. - evict(HttpRequest) - Method in interface io.github.nstdio.http.ext.Cache
-
Evicts cache entry (if any) associated with
request
. - evictAll() - Method in interface io.github.nstdio.http.ext.Cache
-
Removes all cache entries.
- evictAll(HttpRequest) - Method in interface io.github.nstdio.http.ext.Cache
-
Evicts all cache entries associated with
request
. - executor() - Method in class io.github.nstdio.http.ext.ExtendedHttpClient
- executor(Executor) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
- ExtendedHttpClient - Class in io.github.nstdio.http.ext
- ExtendedHttpClient.Builder - Class in io.github.nstdio.http.ext
F
- failOnUnknownDirectives(boolean) - Method in class io.github.nstdio.http.ext.BodyHandlers.DecompressingBodyHandlerBuilder
-
Sets whether throw exception when unknown compression directive encountered or not.
- failOnUnsupportedDirectives(boolean) - Method in class io.github.nstdio.http.ext.BodyHandlers.DecompressingBodyHandlerBuilder
-
Sets whether throw exception when compression directive not supported or not.
- finisher() - Method in interface io.github.nstdio.http.ext.Cache.Writer
-
The consumer to be invoked after response body fully read.
- followRedirects() - Method in class io.github.nstdio.http.ext.ExtendedHttpClient
- followRedirects(HttpClient.Redirect) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
- FORCE_CACHE - Static variable in class io.github.nstdio.http.ext.CacheControl
G
- get() - Method in interface io.github.nstdio.http.ext.spi.JsonMappingProvider
-
Returns an instance of
JsonMapping
. - get(HttpRequest) - Method in interface io.github.nstdio.http.ext.Cache
-
Gets the cache entry associated with
request
. - GsonJsonMapping - Class in io.github.nstdio.http.ext.spi
- GsonJsonMapping(Gson) - Constructor for class io.github.nstdio.http.ext.spi.GsonJsonMapping
H
- hasHeader(String) - Static method in class io.github.nstdio.http.ext.Predicates
-
The
Predicate
that matches onlyHttpRequest
with given header. - hasHeader(String, String) - Static method in class io.github.nstdio.http.ext.Predicates
-
The
Predicate
that matches onlyHttpResponse
with given header. - hit() - Method in interface io.github.nstdio.http.ext.Cache.CacheStats
-
The number the cache serves stored response.
- http.client.ext - module http.client.ext
I
- IdentityCompressionFactory - Class in io.github.nstdio.http.ext.spi
- IdentityCompressionFactory() - Constructor for class io.github.nstdio.http.ext.spi.IdentityCompressionFactory
- immutable() - Method in class io.github.nstdio.http.ext.CacheControl.CacheControlBuilder
- immutable() - Method in class io.github.nstdio.http.ext.CacheControl
- io.github.nstdio.http.ext - package io.github.nstdio.http.ext
- io.github.nstdio.http.ext.spi - package io.github.nstdio.http.ext.spi
- isBrotli4jPresent() - Static method in class io.github.nstdio.http.ext.spi.Classpath
- isGsonPresent() - Static method in class io.github.nstdio.http.ext.spi.Classpath
- isJacksonPresent() - Static method in class io.github.nstdio.http.ext.spi.Classpath
- isOrgBrotliPresent() - Static method in class io.github.nstdio.http.ext.spi.Classpath
- isPresent(String) - Static method in class io.github.nstdio.http.ext.spi.Classpath
- isZstdJniPresent() - Static method in class io.github.nstdio.http.ext.spi.Classpath
J
- JacksonJsonMapping - Class in io.github.nstdio.http.ext.spi
- JacksonJsonMapping(ObjectMapper) - Constructor for class io.github.nstdio.http.ext.spi.JacksonJsonMapping
- JdkCompressionFactory - Class in io.github.nstdio.http.ext.spi
- JdkCompressionFactory() - Constructor for class io.github.nstdio.http.ext.spi.JdkCompressionFactory
- JsonMapping - Interface in io.github.nstdio.http.ext.spi
-
The simple strategy for binding JSON to Java objects.
- JsonMappingProvider - Interface in io.github.nstdio.http.ext.spi
-
The SPI to for JsonMapping.
- JsonMappingProviderNotFoundException - Exception in io.github.nstdio.http.ext.spi
-
Thrown to indicate that requested
JsonMappingProvider
is not found. - JsonMappingProviderNotFoundException(String) - Constructor for exception io.github.nstdio.http.ext.spi.JsonMappingProviderNotFoundException
K
- key(SecretKey) - Method in class io.github.nstdio.http.ext.Cache.EncryptedDiskCacheBuilder
-
The secret key to encrypt/decrypt all files that this cache maintains.
L
- lenient(boolean) - Method in class io.github.nstdio.http.ext.BodyHandlers.DecompressingBodyHandlerBuilder
-
Toggles both
BodyHandlers.DecompressingBodyHandlerBuilder.failOnUnsupportedDirectives
andBodyHandlers.DecompressingBodyHandlerBuilder.failOnUnknownDirectives
.
M
- maxAge() - Method in class io.github.nstdio.http.ext.CacheControl
- maxAge(long) - Method in class io.github.nstdio.http.ext.CacheControl.CacheControlBuilder
- maxAge(TimeUnit) - Method in class io.github.nstdio.http.ext.CacheControl
- maxStale() - Method in class io.github.nstdio.http.ext.CacheControl
- maxStale(long) - Method in class io.github.nstdio.http.ext.CacheControl.CacheControlBuilder
- maxStale(TimeUnit) - Method in class io.github.nstdio.http.ext.CacheControl
- metadata() - Method in interface io.github.nstdio.http.ext.Cache.CacheEntry
- minFresh() - Method in class io.github.nstdio.http.ext.CacheControl
- minFresh(long) - Method in class io.github.nstdio.http.ext.CacheControl.CacheControlBuilder
- minFresh(TimeUnit) - Method in class io.github.nstdio.http.ext.CacheControl
- miss() - Method in interface io.github.nstdio.http.ext.Cache.CacheStats
-
The number the cache does not have stored response which resulted in network call.
- mustRevalidate() - Method in class io.github.nstdio.http.ext.CacheControl.CacheControlBuilder
- mustRevalidate() - Method in class io.github.nstdio.http.ext.CacheControl
- mustUnderstand() - Method in class io.github.nstdio.http.ext.CacheControl.CacheControlBuilder
- mustUnderstand() - Method in class io.github.nstdio.http.ext.CacheControl
N
- newBuilder() - Static method in class io.github.nstdio.http.ext.ExtendedHttpClient
-
Creates a new
ExtendedHttpClient
builder. - newDiskCacheBuilder() - Static method in interface io.github.nstdio.http.ext.Cache
-
Creates a new
DiskCacheBuilder
instance. - newHttpClient() - Static method in class io.github.nstdio.http.ext.ExtendedHttpClient
-
Create a new
ExtendedHttpClient
with in memory cache and transparent encoding enabled. - newInMemoryCacheBuilder() - Static method in interface io.github.nstdio.http.ext.Cache
-
Creates a new
InMemoryCacheBuilder
instance. - newWebSocketBuilder() - Method in class io.github.nstdio.http.ext.ExtendedHttpClient
- noCache() - Method in class io.github.nstdio.http.ext.CacheControl.CacheControlBuilder
- noCache() - Method in class io.github.nstdio.http.ext.CacheControl
- noop() - Static method in interface io.github.nstdio.http.ext.Cache
-
Gets the
Cache
effectively does not do anything. - noStore() - Method in class io.github.nstdio.http.ext.CacheControl.CacheControlBuilder
- noStore() - Method in class io.github.nstdio.http.ext.CacheControl
- noTransform() - Method in class io.github.nstdio.http.ext.CacheControl.CacheControlBuilder
- noTransform() - Method in class io.github.nstdio.http.ext.CacheControl
O
- of(HttpHeaders) - Static method in class io.github.nstdio.http.ext.CacheControl
- of(HttpRequest) - Static method in class io.github.nstdio.http.ext.CacheControl
- ofDecompressing() - Static method in class io.github.nstdio.http.ext.BodyHandlers
-
Wraps response body
InputStream
in on-the-fly decompressingInputStream
in accordance with Content-Encoding header semantics. - ofDecompressing(HttpResponse.BodyHandler<T>) - Static method in class io.github.nstdio.http.ext.BodyHandlers
- ofJson(JsonMapping, Class<T>) - Static method in class io.github.nstdio.http.ext.BodySubscribers
- ofJson(Class<T>) - Static method in class io.github.nstdio.http.ext.BodyHandlers
-
Creates body handler to map JSON response to
targetType
. - ofJson(Class<T>) - Static method in class io.github.nstdio.http.ext.BodySubscribers
- ofJson(Object) - Static method in class io.github.nstdio.http.ext.BodyPublishers
-
Returns a request body publisher whose body is JSON representation of
body
. - ofJson(Object, JsonMappingProvider) - Static method in class io.github.nstdio.http.ext.BodyPublishers
-
Returns a request body publisher whose body is JSON representation of
body
. - ofJson(Object, JsonMappingProvider, Executor) - Static method in class io.github.nstdio.http.ext.BodyPublishers
-
Returns a request body publisher whose body is JSON representation of
body
. - ofJson(Object, Executor) - Static method in class io.github.nstdio.http.ext.BodyPublishers
-
Returns a request body publisher whose body is JSON representation of
body
. - onlyIfCached() - Method in class io.github.nstdio.http.ext.CacheControl.CacheControlBuilder
- onlyIfCached() - Method in class io.github.nstdio.http.ext.CacheControl
- OptionalBrotliCompressionFactory - Class in io.github.nstdio.http.ext.spi
- OptionalBrotliCompressionFactory() - Constructor for class io.github.nstdio.http.ext.spi.OptionalBrotliCompressionFactory
- OptionalZstdCompressionFactory - Class in io.github.nstdio.http.ext.spi
- OptionalZstdCompressionFactory() - Constructor for class io.github.nstdio.http.ext.spi.OptionalZstdCompressionFactory
P
- parse(String) - Static method in class io.github.nstdio.http.ext.CacheControl
- Predicates - Class in io.github.nstdio.http.ext
-
The request/response predicates to use with
ConstrainedCacheBuilder.requestFilter(Predicate)
andConstrainedCacheBuilder.responseFilter(Predicate)
. - priority(int) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
- privateKey(PrivateKey) - Method in class io.github.nstdio.http.ext.Cache.EncryptedDiskCacheBuilder
-
Sets the private key to use.
- provider() - Static method in interface io.github.nstdio.http.ext.spi.JsonMappingProvider
-
Finds the first available
JsonMappingProvider
. - provider(String) - Method in class io.github.nstdio.http.ext.Cache.EncryptedDiskCacheBuilder
-
The
Provider
name to use. - provider(String) - Static method in interface io.github.nstdio.http.ext.spi.JsonMappingProvider
-
Finds the
JsonMappingProvider
with given name. - proxy() - Method in class io.github.nstdio.http.ext.ExtendedHttpClient
- proxy(ProxySelector) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
- publicKey(PublicKey) - Method in class io.github.nstdio.http.ext.Cache.EncryptedDiskCacheBuilder
-
Sets the public key to use.
- put(HttpRequest, Cache.CacheEntry) - Method in interface io.github.nstdio.http.ext.Cache
-
Associates
request
withentry
and stores it in this cache.
R
- read(byte[], Class<T>) - Method in class io.github.nstdio.http.ext.spi.GsonJsonMapping
- read(byte[], Class<T>) - Method in class io.github.nstdio.http.ext.spi.JacksonJsonMapping
- read(byte[], Class<T>) - Method in interface io.github.nstdio.http.ext.spi.JsonMapping
-
Reads JSON data from the
bytes
and creates mapped object of typetargetType
. - read(byte[], Type) - Method in class io.github.nstdio.http.ext.spi.GsonJsonMapping
- read(byte[], Type) - Method in class io.github.nstdio.http.ext.spi.JacksonJsonMapping
- read(byte[], Type) - Method in interface io.github.nstdio.http.ext.spi.JsonMapping
-
Reads JSON data from the
bytes
and creates mapped object of typetargetType
. - read(InputStream, Class<T>) - Method in class io.github.nstdio.http.ext.spi.GsonJsonMapping
- read(InputStream, Class<T>) - Method in class io.github.nstdio.http.ext.spi.JacksonJsonMapping
- read(InputStream, Class<T>) - Method in interface io.github.nstdio.http.ext.spi.JsonMapping
-
Reads JSON data from the
in
and creates mapped object of typetargetType
. - read(InputStream, Type) - Method in class io.github.nstdio.http.ext.spi.GsonJsonMapping
- read(InputStream, Type) - Method in class io.github.nstdio.http.ext.spi.JacksonJsonMapping
- read(InputStream, Type) - Method in interface io.github.nstdio.http.ext.spi.JsonMapping
-
Reads JSON data from the
in
and creates mapped object of typetargetType
. - removeProvider(String) - Static method in interface io.github.nstdio.http.ext.spi.JsonMappingProvider
-
Removes provider with name
name
.
S
- send(HttpRequest, HttpResponse.BodyHandler<T>) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient
- sendAsync(HttpRequest, HttpResponse.BodyHandler<T>) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient
- sendAsync(HttpRequest, HttpResponse.BodyHandler<T>, HttpResponse.PushPromiseHandler<T>) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient
- sslContext() - Method in class io.github.nstdio.http.ext.ExtendedHttpClient
- sslContext(SSLContext) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
- sslParameters() - Method in class io.github.nstdio.http.ext.ExtendedHttpClient
- sslParameters(SSLParameters) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
- staleIfError() - Method in class io.github.nstdio.http.ext.CacheControl
- staleIfError(long) - Method in class io.github.nstdio.http.ext.CacheControl.CacheControlBuilder
- staleIfError(TimeUnit) - Method in class io.github.nstdio.http.ext.CacheControl
- staleWhileRevalidate() - Method in class io.github.nstdio.http.ext.CacheControl
- staleWhileRevalidate(long) - Method in class io.github.nstdio.http.ext.CacheControl.CacheControlBuilder
- staleWhileRevalidate(TimeUnit) - Method in class io.github.nstdio.http.ext.CacheControl
- stats() - Method in interface io.github.nstdio.http.ext.Cache
-
Gets the statistics for this cache.
- subscriber() - Method in interface io.github.nstdio.http.ext.Cache.Writer
-
The body subscriber to collect response body.
- subscribeTo(Flow.Subscriber<List<ByteBuffer>>) - Method in interface io.github.nstdio.http.ext.Cache.CacheEntry
- supported() - Method in interface io.github.nstdio.http.ext.spi.CompressionFactory
-
The list of supported decompression directives like:
- supported() - Method in class io.github.nstdio.http.ext.spi.IdentityCompressionFactory
- supported() - Method in class io.github.nstdio.http.ext.spi.JdkCompressionFactory
T
- toString() - Method in class io.github.nstdio.http.ext.CacheControl
- transparentEncoding(boolean) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
-
Sets the flag whether automatically decompress response or not.
U
- uri(URI) - Static method in class io.github.nstdio.http.ext.Predicates
-
The
Predicate
that matchesHttpRequest
s with givenuri
.
V
- version() - Method in class io.github.nstdio.http.ext.ExtendedHttpClient
- version(HttpClient.Version) - Method in class io.github.nstdio.http.ext.ExtendedHttpClient.Builder
W
- write(Object, OutputStream) - Method in class io.github.nstdio.http.ext.spi.GsonJsonMapping
- write(Object, OutputStream) - Method in class io.github.nstdio.http.ext.spi.JacksonJsonMapping
- write(Object, OutputStream) - Method in interface io.github.nstdio.http.ext.spi.JsonMapping
-
Writes JSON representation of
o
object toos
stream. - writer(CacheEntryMetadata) - Method in interface io.github.nstdio.http.ext.Cache
-
Creates a
Writer
.
All Classes All Packages