Class ActionMessage
- java.lang.Object
-
- jetbrains.buildServer.controllers.ActionMessage
-
public class ActionMessage extends Object
Represents an action message. Used in conjunction with ActionMessages- Since:
- 5.0
- See Also:
ActionMessages
-
-
Constructor Summary
Constructors Constructor Description ActionMessage(String key, String message)
Create an action message object with the specified key, body and warning flag set to false.ActionMessage(String key, String message, boolean isWarning, String... parameters)
Create an action message object with the specified key, body and warning flag.ActionMessage(String key, String message, String... parameters)
Create an action message object with the specified key, body and warning flag set to false.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKey()
String
getMessage()
boolean
isIsWarning()
String
toString()
-
-
-
Constructor Detail
-
ActionMessage
public ActionMessage(@NotNull String key, @NotNull String message)
Create an action message object with the specified key, body and warning flag set to false.The caller cannot pass raw HTML message using this constructor, as the
message
will be escaped.- Parameters:
key
- the keymessage
- the message body- See Also:
ActionMessages.addRawMessage(String, String, String...)
-
ActionMessage
public ActionMessage(@NotNull String key, @NotNull String message, boolean isWarning, @NotNull String... parameters)
Create an action message object with the specified key, body and warning flag. Message body can contain placeholders for parameters.The caller cannot pass raw HTML message using this constructor, as the
message
andparameters
will be escaped.- Parameters:
key
- message keymessage
- messageisWarning
- the warning flag (by default will be displayed as warning)parameters
- if specified then substrings like {0}, {1}, {2} and so on will be replaced with parameter with corresponding index. Each parameter will be passed throughWebUtil.escapeXml(String)
function before inserted into the resulting message.- See Also:
ActionMessages.addRawMessage(String, String, String...)
-
ActionMessage
public ActionMessage(@NotNull String key, @NotNull String message, @NotNull String... parameters)
Create an action message object with the specified key, body and warning flag set to false. Message body can contain placeholders for parameters.The caller cannot pass raw HTML message using this constructor, as the
message
andparameters
will be escaped.- Parameters:
key
- message keymessage
- messageparameters
- if specified then substrings like {0}, {1}, {2} and so on will be replaced with parameter with corresponding index. Each parameter will be passed throughWebUtil.escapeXml(String)
function before inserted into the resulting message.- See Also:
ActionMessages.addRawMessage(String, String, String...)
-
-