<T> java.net.http.HttpResponse.BodyHandler<java.util.function.Supplier<T>> |
AdapterCodec.deferredHandlerOf(TypeRef<T> typeRef,
BodyAdapter.Hints hints) |
Returns a BodyHandler that lazily decodes the response body into an object of the given
type.
|
<T> java.net.http.HttpResponse.BodySubscriber<java.util.function.Supplier<T>> |
AdapterCodec.deferredSubscriberOf(TypeRef<T> typeRef,
BodyAdapter.Hints hints) |
Returns a HttpResponse.BodySubscriber that lazily decodes the response body into an object of the
given type.
|
static java.util.Optional<BodyAdapter.Decoder> |
BodyAdapter.Decoder.getDecoder(TypeRef<?> typeRef,
@Nullable MediaType mediaType) |
Returns a registered decoder that supports the given object type and media type, if any.
|
static java.util.Optional<BodyAdapter.Encoder> |
BodyAdapter.Encoder.getEncoder(TypeRef<?> typeRef,
@Nullable MediaType mediaType) |
Returns a registered encoder that supports the given object type and media type, if any.
|
<T> java.net.http.HttpResponse.BodyHandler<T> |
AdapterCodec.handlerOf(TypeRef<T> typeRef,
BodyAdapter.Hints hints) |
Returns a HttpResponse.BodyHandler that decodes the response body into an object of the given type.
|
<T> MutableRequest |
MutableRequest.method(java.lang.String method,
T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Sets the request method and sets the payload to the given value with an explicitly specified
type.
|
static <T> java.net.http.HttpResponse.BodyHandler<java.util.function.Supplier<T>> |
MoreBodyHandlers.ofDeferredObject(TypeRef<T> typeRef) |
|
static <T> java.net.http.HttpResponse.BodySubscriber<java.util.function.Supplier<T>> |
MoreBodySubscribers.ofDeferredObject(TypeRef<T> type,
@Nullable MediaType mediaType) |
Returns a BodySubscriber that decodes the response body into an object of the given
type using an installed decoder.
|
static <T> java.net.http.HttpResponse.BodyHandler<T> |
MoreBodyHandlers.ofObject(TypeRef<T> typeRef) |
|
static <T> java.net.http.HttpResponse.BodySubscriber<T> |
MoreBodySubscribers.ofObject(TypeRef<T> type,
@Nullable MediaType mediaType) |
Returns a BodySubscriber that decodes the response body into an object of the given
type using an installed decoder.
|
static <T> MutableRequest |
MutableRequest.PATCH(java.lang.String uri,
T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a PATCH method.
|
static <T> MutableRequest |
MutableRequest.PATCH(java.net.URI uri,
T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a PATCH method.
|
<T> MutableRequest |
MutableRequest.PATCH(T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Sets the request method to PATCH and sets the payload to the given value with an explicitly
specified type.
|
static <T> MutableRequest |
MutableRequest.POST(java.lang.String uri,
T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a POST method.
|
static <T> MutableRequest |
MutableRequest.POST(java.net.URI uri,
T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a POST method.
|
<T> MutableRequest |
MutableRequest.POST(T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Sets the request method to POST and sets the payload to the given value with an explicitly
specified type.
|
<T> java.net.http.HttpRequest.BodyPublisher |
AdapterCodec.publisherOf(T value,
TypeRef<T> typeRef,
BodyAdapter.Hints hints) |
Returns a HttpRequest.BodyPublisher that encodes the given object into a request body with respect
to the given TypeRef.
|
static <T> MutableRequest |
MutableRequest.PUT(java.lang.String uri,
T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a PUT method.
|
static <T> MutableRequest |
MutableRequest.PUT(java.net.URI uri,
T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a PUT method.
|
<T> MutableRequest |
MutableRequest.PUT(T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Sets the request method to PUT and sets the payload to the given value with an explicitly
specified type.
|
MutableRequest |
MutableRequest.removeTag(TypeRef<?> typeRef) |
|
TaggableRequest.Builder |
TaggableRequest.Builder.removeTag(TypeRef<?> typeRef) |
Removes the tag associated with the given type.
|
<T> java.net.http.HttpResponse<T> |
Methanol.send(java.net.http.HttpRequest request,
TypeRef<T> typeRef) |
Sends the given request and converts the response body
into an object of the given type.
|
<T> java.util.concurrent.CompletableFuture<java.net.http.HttpResponse<T>> |
Methanol.sendAsync(java.net.http.HttpRequest request,
TypeRef<T> typeRef) |
Asynchronously sends the given request and
converts the response body into an object of the given type.
|
<T> java.net.http.HttpResponse.BodySubscriber<T> |
AdapterCodec.subscriberOf(TypeRef<T> typeRef,
BodyAdapter.Hints hints) |
Returns a HttpResponse.BodySubscriber that decodes the response body into an object of the given
type.
|
boolean |
BodyAdapter.supportsType(TypeRef<?> typeRef) |
Returns true if this adapter supports the given type.
|
<T> MutableRequest |
MutableRequest.tag(TypeRef<T> typeRef,
T value) |
|
<T> TaggableRequest.Builder |
TaggableRequest.Builder.tag(TypeRef<T> typeRef,
T value) |
Adds a tag mapped to the given type.
|
<T> java.util.Optional<T> |
TaggableRequest.tag(TypeRef<T> typeRef) |
Returns the tag associated with the given type if present.
|
static <T> java.util.Optional<T> |
TaggableRequest.tagOf(java.net.http.HttpRequest request,
TypeRef<T> typeRef) |
Returns the tag associated with the given type if the given request is a
TaggableRequest and it has a tag with the given type, otherwise returns an empty
Optional.
|
<T> T |
ResponsePayload.to(TypeRef<T> typeRef) |
Converts this payload into an object of (possibly generic) type T.
|
<T> java.util.concurrent.CompletableFuture<T> |
ResponsePayload.toAsync(TypeRef<T> typeRef) |
Asynchronously converts this payload into an object of (possibly generic) type T.
|
default <T> java.net.http.HttpRequest.BodyPublisher |
BodyAdapter.Encoder.toBody(T value,
TypeRef<T> typeRef,
BodyAdapter.Hints hints) |
Returns a HttpRequest.BodyPublisher that encodes the given object into a request body based on
the given TypeRef, using the given hints BodyAdapter.Hints for encoder-specific
customization.
|
default <T> java.net.http.HttpResponse.BodySubscriber<java.util.function.Supplier<T>> |
BodyAdapter.Decoder.toDeferredObject(TypeRef<T> typeRef,
@Nullable MediaType mediaType) |
Returns a completed HttpResponse.BodySubscriber that lazily decodes the response body into an
object of the given type using the format specified by the given media type.
|
default <T> java.net.http.HttpResponse.BodySubscriber<java.util.function.Supplier<T>> |
BodyAdapter.Decoder.toDeferredObject(TypeRef<T> typeRef,
BodyAdapter.Hints hints) |
Returns a completed HttpResponse.BodySubscriber that lazily decodes the response body into an
object of the given type using the given BodyAdapter.Hints.
|
<T> java.net.http.HttpResponse.BodySubscriber<T> |
BodyAdapter.Decoder.toObject(TypeRef<T> typeRef,
@Nullable MediaType mediaType) |
Returns a HttpResponse.BodySubscriber that decodes the response body into an object of the given
type using the format specified by the given media type.
|
default <T> java.net.http.HttpResponse.BodySubscriber<T> |
BodyAdapter.Decoder.toObject(TypeRef<T> typeRef,
BodyAdapter.Hints hints) |
Returns a HttpResponse.BodySubscriber that decodes the response body into an object of the given
type using the given BodyAdapter.Hints.
|