Package org.apache.juneau.rest.client
package org.apache.juneau.rest.client
Next-generation REST client — transport-agnostic HTTP client built on Juneau's serialization stack.
Key types:
HttpTransport— SPI for pluggable HTTP transportsTransportRequest— transport-layer request DTOTransportResponse— transport-layer response DTORestClient— high-level REST clientRestRequest— fluent request builderRestResponse— response wrapper with deserialization support
-
ClassDescriptionDefault
RestClientDebugFormatterimplementation — secure by default.Converts a Java object passed toRestRequest.body(Object)into aTransportBody.A checked function used byBodyConverter.of(Class, ThrowingConverter).Specifies how collection-valued query/form parameters are serialized to a single string.SPI for pluggable HTTP transports.A builder interface for configuring and creatingHttpTransportinstances.ServiceLoaderSPI for auto-discoveringHttpTransportimplementations on the classpath.HttpTransportimplementation backed by the JDK's built-inHttpClient.Fluent builder forJavaHttpTransport.HttpTransportProviderimplementation that supplies aJavaHttpTransport.Shared Juneau-controlled redirect loop for SSRF-guard-active (TransportRequest.isSsrfGuardActive())@Remoterequests.Performs a single pinned HTTP exchange for one hop of a policy-covered redirect chain.A streaming HTTP request body that emits its content through a token/record-streaming cursor.Pure decision logic for whether caller-set credential headers (such asAuthorizationorCookie) should be forwarded or stripped when a REST call is transparently replayed against a redirect target (an HTTP3xxresponse'sLocation).The outcome of a credential-forwarding decision for a single redirect hop.A fluent accessor for an HTTP response body returned byRestResponse.A fluent accessor for a named HTTP response header.Exception thrown when an HTTP call fails at the REST client level (e.g. unexpected status code, body deserialization failure, or interceptor rejection).Lifecycle interceptor for REST calls made byRestClient.Next-generation transport-agnostic REST client.Fluent builder forRestClient.Per-tier formatter for JUL-level-driven REST client debug logging.Fluent builder for a single HTTP request.An HTTP response returned byRestRequest.run().A repeatableHttpBodythat serializes a POJO straight to the transport output stream.The body of a transport-layer request — a thin wrapper aroundHttpBodythat gives transports a stable contract without needing to know about higher-level body types.Thrown byHttpTransport.execute(TransportRequest)when a network-level error occurs (e.g. connection refused, timeout, SSL handshake failure).An HTTP header name/value pair as seen by the transport layer.A fully-resolved, transport-layer HTTP request.Fluent builder forTransportRequest.A transport-layer HTTP response.Fluent builder forTransportResponse.