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 UidlWriter
- java.lang.Object
-
- com.vaadin.flow.server.communication.UidlWriter
-
All Implemented Interfaces:
public class UidlWriter extends Object implements Serializable
Serializes pending server-side changes to UI state to JSON. This includes shared state, client RPC invocations, connector hierarchy changes, connector type information among others.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
UidlWriter.ResolveContext
Provides context information for the resolve operations.
-
Constructor Summary
Constructors Constructor and Description UidlWriter()
-
Method Summary
All Methods Modifier and Type Method and Description elemental.json.JsonObject
createUidl(UI ui, boolean async)
Creates a JSON object containing all pending changes to the given UI.
-
-
-
Method Detail
-
createUidl
public elemental.json.JsonObject createUidl(UI ui, boolean async)
Creates a JSON object containing all pending changes to the given UI.
Parameters:
ui
- TheUI
whose changes to writeasync
- True if this message is sent by the server asynchronously, false if it is a response to a client message.Returns:
JSON object containing the UIDL response
-
-