Class WebSocketFrameLogEntry
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
Represents a log entry for a WebSocket frame.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a sanitised version of this log entry.static StringSanitizes a header value based on the header key.static voidSanitizes a list of header values based on the header key.static voidSanitizes a map of header values based on the header key.static StringMasks r and c query parameter values while preserving the rest of the URI.toJson()Serializes this WebSocket frame log entry to JSON.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
WebSocketFrameLogEntry
public WebSocketFrameLogEntry()Constructs a new WebSocket frame log entry.
-
-
Method Details
-
toJson
Serializes this WebSocket frame log entry to JSON.- Returns:
- the JSON representation of this object
-
getSanitised
Gets a sanitised version of this log entry.- Returns:
- a sanitised version of this log entry
-
sanitize
Sanitizes a map of header values based on the header key.- Parameters:
input- The map of header valuesoutput- The map to populate with sanitized values
-
sanitize
Sanitizes a list of header values based on the header key.- Parameters:
key- The header keyinput- The list of header valuesoutput- The list to populate with sanitized values
-
sanitize
Sanitizes a header value based on the header key.- Parameters:
key- The header keyvalue- The header value- Returns:
- The sanitized header value
-
santizeRoomAndClient
Masks r and c query parameter values while preserving the rest of the URI.- Parameters:
uri- The input URI- Returns:
- The URI with r values replaced by "XXXX-XXXX" and c values by "XXXXXXXX"
-