Package com.vaadin.flow.server
Class SystemMessagesInfo
- java.lang.Object
-
- com.vaadin.flow.server.SystemMessagesInfo
-
- All Implemented Interfaces:
Serializable
public class SystemMessagesInfo extends Object implements Serializable
Provides information available forSystemMessagesProviderwhen defining whatSystemMessagesto use.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SystemMessagesInfo(Locale locale, VaadinRequest request, VaadinService service)Creates an instance based on the given locale, request and service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalegetLocale()The locale of the UI related to theSystemMessagesrequest.VaadinRequestgetRequest()Gets the request currently in progress.VaadinServicegetService()Returns the service this SystemMessages request comes from.
-
-
-
Constructor Detail
-
SystemMessagesInfo
public SystemMessagesInfo(Locale locale, VaadinRequest request, VaadinService service)
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 Detail
-
getLocale
public Locale getLocale()
The locale of the UI related to theSystemMessagesrequest.- Returns:
- The Locale or null if the locale is not known
-
getRequest
public VaadinRequest getRequest()
Gets the request currently in progress.- Returns:
- The request currently in progress or null if no request is in progress.
-
getService
public VaadinService getService()
Returns the service this SystemMessages request comes from.- Returns:
- The service which triggered this request or null of not triggered from a service.
-
-