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, waitchars, codePointsprotected 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 CharSequencetoString in class Objectpublic 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 CharSequencepublic char charAt(int index)
charAt in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequenceCopyright © 2004–2016 XWiki. All rights reserved.