Interface ClientCtrl

All Known Implementing Classes:
EmulatorClient

public interface ClientCtrl
Client controller interface. To provide more control of the client for developers.
Author:
pao
  • Method Details

    • postUpdate

      void postUpdate(String desktopId, String targetUUID, String command, Map<String,Object> data, boolean ignorable)
      post an asynchronous update event. It will be queued until invoke flush.
    • postPiggyback

      void postPiggyback(String desktopId, String targetUUID, String command, Map<String,Object> data, boolean ignorable)
      post a piggyback asynchronous update event. a piggyback event's order is after normal events. It will be queued until invoke flush.
      Parameters:
      true - indicated that it's
    • flush

      void flush(String desktopId)
      flush the queued AU update event including piggyback events.
    • destroy

      void destroy(DesktopAgent desktopAgent)
    • setDestroyListener

      void setDestroyListener(ClientCtrl.DestroyListener l)
    • openConnection

      InputStream openConnection(String path) throws IOException
      open a connection with current session and cookie.
      Parameters:
      path - connect to this path
      Throws:
      IOException
    • getConnection

      HttpURLConnection getConnection(String path, String method)
      get a connection with current session and cookie.
      Parameters:
      path - connect to this path
      method - HTTP method