Class Hints

    • Field Detail

      • LOG_PREFIX_HINT

        public static final String LOG_PREFIX_HINT
        Name of hint exposing a prefix to use for correlating log messages.
      • SUPPRESS_LOGGING_HINT

        public static final String SUPPRESS_LOGGING_HINT
        Name of boolean hint whether to avoid logging data either because it's potentially sensitive, or because it has been logged by a composite encoder, e.g. for multipart requests.
    • Constructor Detail

    • Method Detail

      • merge

        public static Map<String,​Objectmerge​(Map<String,​Object> hints1,
                                                     Map<String,​Object> hints2)
        Merge two maps of hints, creating and copying into a new map if both have values, or returning the non-empty map, or an empty map if both are empty.
        Parameters:
        hints1 - 1st map of hints
        hints2 - 2nd map of hints
        Returns:
        a single map with hints from both
      • merge

        public static Map<String,​Objectmerge​(Map<String,​Object> hints,
                                                     String hintName,
                                                     Object hintValue)
        Merge a single hint into a map of hints, possibly creating and copying all hints into a new map, or otherwise if the map of hints is empty, creating a new single entry map.
        Parameters:
        hints - a map of hints to be merge
        hintName - the hint name to merge
        hintValue - the hint value to merge
        Returns:
        a single map with all hints