Package com.vaadin.server.communication
Class SharedStateWriter
- java.lang.Object
-
- com.vaadin.server.communication.SharedStateWriter
-
- All Implemented Interfaces:
java.io.Serializable
public class SharedStateWriter extends java.lang.Object implements java.io.SerializableSerializesshared statechanges to JSON.- Since:
- 7.1
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SharedStateWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>write(UI ui, java.io.Writer writer)Writes a JSON object containing the pending state changes of the dirty connectors of the given UI.
-
-
-
Method Detail
-
write
public java.util.Set<java.lang.String> write(UI ui, java.io.Writer writer) throws java.io.IOException
Writes a JSON object containing the pending state changes of the dirty connectors of the given UI.- Parameters:
ui- The UI whose state changes should be written.writer- The writer to use.- Returns:
- a set of connector ids with state changes
- Throws:
java.io.IOException- If the serialization fails.
-
-