ResourceRegionEncoder#BOUNDARY_STRING_HINT
| Modifier and Type | Field and Description |
|---|---|
| public static final String | LOG_PREFIX_HINT
Name of hint exposing a prefix to use for correlating log messages. |
| 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. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Map | Returns: the created mapthe hint name hintName, Object the hint value value)Create a map wit a single hint via |
| public static String | Returns: the log prefixthe hints passed to the encode method hints)Obtain the hint |
| public static < the hint type to cast to T> T | Returns: the hint valuethe hints map hints, String the required hint name hintName)Obtain the value for a required hint. |
| public static boolean | Returns: whether logging of data is allowedthe hints map hints)Whether to suppress logging based on the hint |
| public static Map | |
| public static Map | Returns: a single map with all hintsa map of hints to be merged hints, String the hint name to merge hintName, Object the hint value to merge 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. |
| public static Map | |
| public static void | touchDataBuffer(DataBuffer
the buffer to touch buffer, Map<String, Object> the hints map to check for a log prefix hints, Log the logger whose level to check logger)If the hints contain a |
| LOG_PREFIX_HINT | back to summary |
|---|---|
| public static final String LOG_PREFIX_HINT Name of hint exposing a prefix to use for correlating log messages. | |
| SUPPRESS_LOGGING_HINT | back to summary |
|---|---|
| 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. | |
| Hints | back to summary |
|---|---|
| public Hints() | |
| from | back to summary |
|---|---|
| public static Map Create a map wit a single hint via | |
| getLogPrefix | back to summary |
|---|---|
| public static String getLogPrefix(Map<String, Object> hints) Obtain the hint | |
| getRequiredHint | back to summary |
|---|---|
| public static <T> T getRequiredHint(Map<String, Object> hints, String hintName) Obtain the value for a required hint.
| |
| isLoggingSuppressed | back to summary |
|---|---|
| public static boolean isLoggingSuppressed(Map<String, Object> hints) Whether to suppress logging based on the hint | |
| merge | back to summary |
|---|---|
| public static Map 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. | |
| merge | back to summary |
|---|---|
| public static Map 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. | |
| none | back to summary |
|---|---|
| public static Map Return an empty map of hints via | |
| touchDataBuffer | back to summary |
|---|---|
| public static void touchDataBuffer(DataBuffer buffer, Map<String, Object> hints, Log logger) If the hints contain a
| |