Package com.eqixiac.equinix.core.http
package com.eqixiac.equinix.core.http
HTTP communication layer for the Equinix Java SDK. Contains
EquinixHttpClient for executing authenticated
HTTP requests against the Equinix API, including OAuth token management and
automatic error-to-exception mapping. Request assembly and response handling are split into
cohesive helpers: RequestAssembler (request construction
and URI-template resolution), ResponseHandler (body
deserialization and model mapping), ParameterMapper
(query-parameter maps and wire formatting) and
SerializationHelper (JSON request-body attachment; the
wire entity itself is built by the request factory at dispatch).
Sub-packages handle request and response types.- See Also:
-
ClassDescriptionA simple, opt-in consecutive-failure circuit breaker for the SDK's request execution path.The breaker's lifecycle state.The SDK's pooled, timeout-bounded HTTP client.Builds query-parameter maps and single-value parameter lists for request construction, and formats query-string values (e.g.Assembles
EquinixRequestinstances: instantiates the right request subtype for the operation'sRequestType, derives the responseJavaTypefrom the resource's JSON class, and resolves the endpoint's URI template ({$token}placeholders) against the request's properties and path parameters.Maps an Equinix API error response (status code + headers + body) into the appropriate typedEquinixServiceException.Deserializes and mapsEquinixResponsebodies: singleton/list/paginated JSON handling, raw string/byte/map handling, header extraction, and the JSON-to-model mapping helpers that turn deserializedPages into user-facingPaginatedLists.Controls automatic retry of transient failures.Attaches JSON request bodies: the payload is carried on the request as aRequestBodyand serialized to the wire byRequestFactoryat dispatch time (once per attempt), honoring the request's content type and any JacksonFilterProvider.