public class MessageFormatMessage extends Object implements Message
| Constructor and Description |
|---|
MessageFormatMessage(Locale locale,
String messagePattern,
Object... parameters)
Constructs a message.
|
MessageFormatMessage(String messagePattern,
Object... parameters)
Constructs a message.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
protected String |
formatMessage(String msgPattern,
Object... args) |
String |
getFormat()
Returns the message pattern.
|
String |
getFormattedMessage()
Returns the formatted message.
|
Object[] |
getParameters()
Returns the message parameters.
|
Throwable |
getThrowable()
Return the throwable passed to the Message.
|
int |
hashCode() |
String |
toString() |
public MessageFormatMessage(Locale locale, String messagePattern, Object... parameters)
locale - the locale for this message formatmessagePattern - the pattern for this message formatparameters - The objects to formatpublic MessageFormatMessage(String messagePattern, Object... parameters)
messagePattern - the pattern for this message formatparameters - The objects to formatpublic String getFormattedMessage()
getFormattedMessage in interface Messagepublic Object[] getParameters()
getParameters in interface Messageprotected String formatMessage(String msgPattern, Object... args)
public Throwable getThrowable()
getThrowable in interface MessageCopyright © 1999-1969 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.