We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.server.communication.
Class MetadataWriter
- java.lang.Object
-
- com.vaadin.flow.server.communication.MetadataWriter
-
All Implemented Interfaces:
public class MetadataWriter extends Object implements Serializable
Serializes miscellaneous metadata to JSON.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Constructor and Description MetadataWriter()
-
Method Summary
All Methods Modifier and Type Method and Description elemental.json.JsonObject
createMetadata(UI ui, boolean repaintAll, boolean async, SystemMessages messages)
Creates a JSON object containing metadata related to the given UI.
-
-
-
Method Detail
-
createMetadata
public elemental.json.JsonObject createMetadata(UI ui, boolean repaintAll, boolean async, SystemMessages messages)
Creates a JSON object containing metadata related to the given UI.
Parameters:
ui
- The UI whose metadata to write.repaintAll
- Whether the client should repaint everything.async
- True if this message is sent by the server asynchronously, false if it is a response to a client message.messages
- aSystemMessages
containing client-side error messages.Returns:
JSON object with the metadata
-
-