Class SystemMessagesInfo

java.lang.Object
com.vaadin.flow.server.SystemMessagesInfo
All Implemented Interfaces:
Serializable

public class SystemMessagesInfo extends Object implements Serializable
Provides information available for SystemMessagesProvider when defining what SystemMessages to use.
Since:
1.0
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • 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 messages
      request - the request we are processing
      service - the service instance
  • Method Details

    • 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.