com.vaadin.server.communication.

Class 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 Detail

      • UidlWriter

        public UidlWriter()
    • 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 - The UI whose changes to write

        writer - The writer to use

        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.