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:
  • Class
    Description
    A 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 EquinixRequest instances: instantiates the right request subtype for the operation's RequestType, derives the response JavaType from 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 typed EquinixServiceException.
    Deserializes and maps EquinixResponse bodies: singleton/list/paginated JSON handling, raw string/byte/map handling, header extraction, and the JSON-to-model mapping helpers that turn deserialized Pages into user-facing PaginatedLists.
    Controls automatic retry of transient failures.
    Attaches JSON request bodies: the payload is carried on the request as a RequestBody and serialized to the wire by RequestFactory at dispatch time (once per attempt), honoring the request's content type and any Jackson FilterProvider.