Class BaseJsonNodeSource

java.lang.Object
com.arpnetworking.configuration.jackson.BaseJsonNodeSource
All Implemented Interfaces:
JsonNodeSource
Direct Known Subclasses:
HoconFileSource, JsonNodeDirectorySource, JsonNodeFileSource, JsonNodeLiteralSource, JsonNodePaginatedUriSource, JsonNodeUriSource

public abstract class BaseJsonNodeSource extends Object implements JsonNodeSource
Abstract base class for JsonNodeSource implementations.
Author:
Ville Koskela (ville dot koskela at inscopemetrics dot io)
  • Field Details

    • _objectMapper

      protected final com.fasterxml.jackson.databind.ObjectMapper _objectMapper
  • Constructor Details

  • Method Details

    • toLogValue

      public Object toLogValue()
      Generate a Steno log compatible representation.
      Returns:
      Steno log compatible representation.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getValue

      protected static Optional<com.fasterxml.jackson.databind.JsonNode> getValue(Optional<com.fasterxml.jackson.databind.JsonNode> node, String... keys)
      Find the JsonNode if one exists from a specified root node given a sequence of keys to look-up.
      Parameters:
      node - The root JsonNode.
      keys - The sequence of keys to search for.
      Returns:
      The Optional JsonNode instance.