DefaultMessagesApi
The Messages API.
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete 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
- Definition Classes
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
- Definition Classes
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
- Definition Classes
Check if a message key is defined.
Check if a message key is defined.
Value parameters
- key
-
the message key
Attributes
- Returns
-
a boolean
- Definition Classes
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
- Definition Classes
Get the preferred messages for the given Java request
Get the preferred messages for the given request
Attributes
- Definition Classes
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
- Definition Classes
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
- Definition Classes
Inherited methods
Attributes
- Returns
-
The Java version for Messages API.
- Inherited from:
- MessagesApi
Concrete fields
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
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.