- java.lang.Object
-
- org.apache.logging.log4j.message.MapMessage<StringMapMessage,String>
-
- org.apache.logging.log4j.message.StringMapMessage
-
- All Implemented Interfaces:
Message
,MultiformatMessage
,MultiFormatStringBuilderFormattable
,StringBuilderFormattable
@AsynchronouslyFormattable public class StringMapMessage extends MapMessage<StringMapMessage,String>
AStringMapMessage
typed toString
-only values. This is like the MapMessage class before 2.9.- Since:
- 2.9
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.logging.log4j.message.MapMessage
MapMessage.MapFormat
-
-
Constructor Summary
Constructors Constructor Description StringMapMessage()
Constructs a new instance.StringMapMessage(int initialCapacity)
Constructs a new instance.StringMapMessage(Map<String,String> map)
Constructs a new instance based on an existing Map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringMapMessage
newInstance(Map<String,String> map)
Constructs a new instance based on an existing Map.-
Methods inherited from class org.apache.logging.log4j.message.MapMessage
appendMap, asJava, asJavaUnquoted, asJson, asString, asString, asXml, clear, containsKey, equals, forEach, forEach, formatTo, formatTo, get, getData, getFormat, getFormats, getFormattedMessage, getFormattedMessage, getIndexedReadOnlyStringMap, getParameters, getThrowable, hashCode, put, putAll, remove, toKey, toString, validate, validate, validate, validate, validate, validate, validate, validate, validate, validate, with, with, with, with, with, with, with, with, with, with
-
-
-
-
Method Detail
-
newInstance
public StringMapMessage newInstance(Map<String,String> map)
Constructs a new instance based on an existing Map.- Overrides:
newInstance
in classMapMessage<StringMapMessage,String>
- Parameters:
map
- The Map.- Returns:
- A new StringMapMessage
-
-