public class FormattedMessage extends Object implements Message
Constructor and Description |
---|
FormattedMessage(Locale locale,
String messagePattern,
Object... arguments)
Constructs with a locale, a pattern and a parameter array.
|
FormattedMessage(Locale locale,
String messagePattern,
Object arg)
Constructs with a locale, a pattern and a single parameter.
|
FormattedMessage(Locale locale,
String messagePattern,
Object[] arguments,
Throwable throwable)
Constructs with a locale, a pattern, a parameter array, and a throwable.
|
FormattedMessage(Locale locale,
String messagePattern,
Object arg1,
Object arg2)
Constructs with a locale, a pattern and two parameters.
|
FormattedMessage(String messagePattern,
Object... arguments)
Constructs with a pattern and a parameter array.
|
FormattedMessage(String messagePattern,
Object arg)
Constructs with a pattern and a single parameter.
|
FormattedMessage(String messagePattern,
Object[] arguments,
Throwable throwable)
Constructs with a pattern, a parameter array, and a throwable.
|
FormattedMessage(String messagePattern,
Object arg1,
Object arg2)
Constructs with a pattern and two parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getFormat()
Gets the message pattern.
|
String |
getFormattedMessage()
Gets the formatted message.
|
protected Message |
getMessage(String msgPattern,
Object[] args,
Throwable aThrowable) |
Object[] |
getParameters()
Gets the message parameters.
|
Throwable |
getThrowable()
Gets the throwable, if any.
|
int |
hashCode() |
String |
toString() |
public FormattedMessage(Locale locale, String messagePattern, Object arg)
locale
- The localemessagePattern
- The message pattern.arg
- The parameter.public FormattedMessage(Locale locale, String messagePattern, Object arg1, Object arg2)
locale
- The localemessagePattern
- The message pattern.arg1
- The first parameter.arg2
- The second parameter.public FormattedMessage(Locale locale, String messagePattern, Object... arguments)
locale
- The localemessagePattern
- The message pattern.arguments
- The parameter.public FormattedMessage(Locale locale, String messagePattern, Object[] arguments, Throwable throwable)
locale
- The LocalemessagePattern
- The message pattern.arguments
- The parameter.throwable
- The throwablepublic FormattedMessage(String messagePattern, Object arg)
messagePattern
- The message pattern.arg
- The parameter.public FormattedMessage(String messagePattern, Object arg1, Object arg2)
messagePattern
- The message pattern.arg1
- The first parameter.arg2
- The second parameter.public FormattedMessage(String messagePattern, Object... arguments)
messagePattern
- The message pattern.arguments
- The parameter.public String getFormat()
public String getFormattedMessage()
getFormattedMessage
in interface Message
public Object[] getParameters()
getParameters
in interface Message
public Throwable getThrowable()
Message
getThrowable
in interface Message
Copyright © 2021 JBoss by Red Hat. All rights reserved.