MessagesApi
The internationalisation API.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DefaultMessagesApi
Members list
Value members
Abstract methods
Translates a message.
Translates a message.
Uses java.text.MessageFormat internally to format the message.
Value parameters
- args
-
the message arguments
- key
-
the message key
Attributes
- Returns
-
the formatted message or a default rendering if the key wasn’t defined
Translates the first defined message.
Translates the first defined message.
Uses java.text.MessageFormat internally to format the message.
Value parameters
- args
-
the message arguments
- keys
-
the message key
Attributes
- Returns
-
the formatted message or a default rendering if the key wasn’t defined
Check if a message key is defined.
Check if a message key is defined.
Value parameters
- key
-
the message key
Attributes
- Returns
-
a boolean
Whether the HTTP only attribute of the cookie should be set to true or not.
Whether the HTTP only attribute of the cookie should be set to true or not.
Attributes
An optional max age in seconds for the language Cookie.
An optional max age in seconds for the language Cookie.
Attributes
Name for the language Cookie.
Name for the language Cookie.
Attributes
Whether the Partitioned attribute of the cookie should be set or not.
Whether the Partitioned attribute of the cookie should be set or not.
Attributes
The value of the SameSite attribute of the cookie. If None, then no SameSite attribute is set.
The value of the SameSite attribute of the cookie. If None, then no SameSite attribute is set.
Attributes
Whether the secure attribute of the cookie is true or not.
Whether the secure attribute of the cookie is true or not.
Attributes
Get all the defined messages
Get all the defined messages
Attributes
Get the preferred messages for the given candidates.
Get the preferred messages for the given candidates.
Will select a language from the candidates, based on the languages available, and fallback to the default language if none of the candidates are available.
Attributes
Get the preferred messages for the given request
Get the preferred messages for the given request
Attributes
Get the preferred messages for the given Java request
Get the preferred messages for the given Java request
Attributes
Translates a message.
Translates a message.
Uses java.text.MessageFormat internally to format the message.
Value parameters
- args
-
the message arguments
- key
-
the message key
Attributes
- Returns
-
the formatted message, if this key was defined
Given a Result, return a new Result with the lang cookie discarded.
Given a Result, return a new Result with the lang cookie discarded.
Attributes
Concrete methods
Attributes
- Returns
-
The Java version for Messages API.