Package com.vaadin.server.communication
Class SharedStateWriter
- java.lang.Object
-
- com.vaadin.server.communication.SharedStateWriter
-
- All Implemented Interfaces:
Serializable
public class SharedStateWriter extends Object implements Serializable
Serializesshared state
changes 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 Set<String>
write(UI ui, Writer writer)
Writes a JSON object containing the pending state changes of the dirty connectors of the given UI.
-
-
-
Method Detail
-
write
public Set<String> write(UI ui, Writer writer) throws 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:
IOException
- If the serialization fails.
-
-