Class Constants

java.lang.Object
com.eqixiac.equinix.core.internal.Constants

public final class Constants extends Object
Author:
ianjones
  • Field Details

    • DEFAULT_ENCODING

      public static final String DEFAULT_ENCODING
      See Also:
    • PAGE_LIMIT

      public static final Integer PAGE_LIMIT
    • PAGE_OFFSET

      public static final Integer PAGE_OFFSET
    • LIFECYCLE_DETAIL_FILTER

      public static final com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter LIFECYCLE_DETAIL_FILTER
    • queryParamFormatter

      public static final DateTimeFormatter queryParamFormatter
      Formats a date-time query/body parameter in the API's yyyy-MM-dd'T'HH:mm:ss'Z' shape.

      The input must be UTC wall clock - which is the SDK-wide convention: the core LocalDateTimeDeserializer parses "...T12:00:00Z" into a bare LocalDateTime of 12:00, so every timestamp the SDK returns is already UTC wall clock and can be formatted here verbatim. The trailing 'Z' is a literal, not an offset: this formatter performs no zone conversion, so formatting a zone-local LocalDateTime (e.g. LocalDateTime.now()) would stamp local wall-clock digits with a UTC designator. For the current time use LocalDateTime.now(ZoneOffset.UTC), or format an Instant via LocalDateTime.ofInstant(instant, ZoneOffset.UTC).

    • DATE_TIME_FORMAT

      public static final DateTimeFormatter DATE_TIME_FORMAT
      ISO-8601-style wire timestamps: T or space separator, 0-9 fractional-second digits, and an optional offset written Z, +HH, +HHMM or +HH:MM. (The previous fixed-width fraction pattern rejected 4, 5, 7, 8 and 9 digits, so the spec's own example 2025-02-04T00:20:54.511118575Z failed the whole response; it also rejected +00:00.) An offset, when present, is applied by LocalDateTimeDeserializer, which normalises every value to UTC.
    • COMMENCE_BILLING

      public static final DateTimeFormatter COMMENCE_BILLING
    • COMMENCE_BILLING_SHORT

      public static final DateTimeFormatter COMMENCE_BILLING_SHORT
    • ALL_DATE_FORMATS

      public static final DateTimeFormatter ALL_DATE_FORMATS
    • UUID_PATTERN

      public static final Pattern UUID_PATTERN
    • JSON_DESERIALIZE_EXCEPTION

      public static final String JSON_DESERIALIZE_EXCEPTION
      See Also:
    • JSON_SERIALIZE_EXCEPTION

      public static final String JSON_SERIALIZE_EXCEPTION
      See Also:
  • Method Details

    • mapper

      public static com.fasterxml.jackson.databind.ObjectMapper mapper()
      The shared wire ObjectMapper used for all SDK request/response (de)serialization.

      Do not reconfigure the returned instance. Its configuration is frozen at class-initialization time and it is used concurrently by every SDK thread; calling configure/registerModule/setSerializationInclusion (or similar) on it is a thread-safety violation and silently changes SDK-wide behaviour. Treat it as read-only: use it for readValue/writeValueAsString/convertValue or derive an immutable handle via reader()/writer().

      Returns:
      the shared, fully configured wire mapper
    • converter

      public static com.fasterxml.jackson.databind.ObjectMapper converter()
      The shared object-to-object conversion ObjectMapper (used to seed updater JSON models from fetched resources via convertValue; never used for wire traffic).

      Do not reconfigure the returned instance - same contract as mapper().

      Returns:
      the shared, fully configured conversion mapper