Package com.vaadin.server.communication
Class UidlWriter
- java.lang.Object
-
- com.vaadin.server.communication.UidlWriter
-
- All Implemented Interfaces:
Serializable
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:
- 7.1
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UidlWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(UI ui, Writer writer, boolean async)Writes a JSON object containing all pending changes to the given UI.
-
-
-
Method Detail
-
write
public void write(UI ui, Writer writer, boolean async) throws IOException
Writes a JSON object containing all pending changes to the given UI.- Parameters:
ui- TheUIwhose changes to writewriter- The writer to useanalyzeLayouts- Whether detected layout problems should be logged.async- True if this message is sent by the server asynchronously, false if it is a response to a client message.- Throws:
IOException- If the writing fails.
-
-