com.vaadin.flow.server.
Class SystemMessagesInfo
- java.lang.Object
-
- com.vaadin.flow.server.SystemMessagesInfo
-
All Implemented Interfaces:
public class SystemMessagesInfo extends Object implements Serializable
Provides information available for
SystemMessagesProvider
when defining whatSystemMessages
to use.Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
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 Modifier and Type Method Description Locale
getLocale()
The locale of the UI related to the
SystemMessages
request.VaadinRequest
getRequest()
Gets the request currently in progress.
VaadinService
getService()
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 the
SystemMessages
request.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.
-
-