Package com.vaadin.flow.server
Class SystemMessagesInfo
java.lang.Object
com.vaadin.flow.server.SystemMessagesInfo
- All Implemented Interfaces:
Serializable
Provides information available for
SystemMessagesProvider
when
defining what SystemMessages
to use.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
ConstructorDescriptionSystemMessagesInfo
(Locale locale, VaadinRequest request, VaadinService service) Creates an instance based on the given locale, request and service. -
Method Summary
Modifier and TypeMethodDescriptionThe locale of the UI related to theSystemMessages
request.Gets the request currently in progress.Returns the service this SystemMessages request comes from.
-
Constructor Details
-
SystemMessagesInfo
Creates an instance based on the given locale, request and service.- Parameters:
locale
- the locale the desired locale for the system messagesrequest
- the request we are processingservice
- the service instance
-
-
Method Details
-
getLocale
The locale of the UI related to theSystemMessages
request.- Returns:
- The Locale or null if the locale is not known
-
getRequest
Gets the request currently in progress.- Returns:
- The request currently in progress or null if no request is in progress.
-
getService
Returns the service this SystemMessages request comes from.- Returns:
- The service which triggered this request or null of not triggered from a service.
-