com.vaadin.server.communication
Class SharedStateWriter

java.lang.Object
  extended by com.vaadin.server.communication.SharedStateWriter
All Implemented Interfaces:
java.io.Serializable

public class SharedStateWriter
extends java.lang.Object
implements java.io.Serializable

Serializes shared state changes to JSON.

Since:
7.1
Author:
Vaadin Ltd
See Also:
Serialized Form

Constructor Summary
SharedStateWriter()
           
 
Method Summary
 void write(UI ui, java.io.Writer writer)
          Writes a JSON object containing the pending state changes of the dirty connectors of the given UI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedStateWriter

public SharedStateWriter()
Method Detail

write

public void 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.
Throws:
java.io.IOException - If the serialization fails.


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.