public class Message extends Object implements Serializable, CharSequence
Modifier | Constructor and Description |
---|---|
protected |
Message()
Matches any
Message . |
|
Message(org.slf4j.Marker marker,
String message,
Object[] argumentArray,
Throwable throwable) |
|
Message(Message message) |
|
Message(String message) |
|
Message(String message,
Object[] argumentArray,
Throwable throwable) |
|
Message(String translationKey,
String message,
Object... arguments) |
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index) |
boolean |
equals(Object object) |
boolean |
equals(String formatedMessage)
Helper to compare the message to the default way of displaying this
Message . |
Object[] |
getArgumentArray() |
String |
getFormattedMessage() |
org.slf4j.Marker |
getMarker() |
String |
getMessage() |
List<String> |
getMessageElements() |
Throwable |
getThrowable() |
String |
getTranslationKey() |
int |
hashCode() |
int |
length() |
CharSequence |
subSequence(int start,
int end) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
chars, codePoints
protected Message()
Message
.public Message(String message)
message
- the messagepublic Message(Message message)
message
- the message to copypublic Message(String message, Object[] argumentArray, Throwable throwable)
message
- the messageargumentArray
- the event arguments to insert in the messagethrowable
- the throwable associated to the eventpublic Message(String translationKey, String message, Object... arguments)
translationKey
- the key used to find the translationmessage
- the log messagearguments
- the arguments to insert in the messagepublic org.slf4j.Marker getMarker()
public String getMessage()
public Object[] getArgumentArray()
public Throwable getThrowable()
public String getFormattedMessage()
public List<String> getMessageElements()
public String getTranslationKey()
public String toString()
toString
in interface CharSequence
toString
in class Object
public boolean equals(String formatedMessage)
Message
.formatedMessage
- the formatted messagetrue
if this object is the same as the obj argument; false
otherwise.public int length()
length
in interface CharSequence
public char charAt(int index)
charAt
in interface CharSequence
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
Copyright © 2004–2022 XWiki. All rights reserved.