Package org.zkoss.zats.mimic.impl
Interface ClientCtrl
-
- All Known Implementing Classes:
EmulatorClient
public interface ClientCtrlClient controller interface. To provide more control of the client for developers.- Author:
- pao
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceClientCtrl.DestroyListener
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroy(DesktopAgent desktopAgent)voidflush(String desktopId)flush the queued AU update event including piggyback events.HttpURLConnectiongetConnection(String path, String method)get a connection with current session and cookie.InputStreamopenConnection(String path)open a connection with current session and cookie.voidpostPiggyback(String desktopId, String targetUUID, String command, Map<String,Object> data, boolean ignorable)post a piggyback asynchronous update event.voidpostUpdate(String desktopId, String targetUUID, String command, Map<String,Object> data, boolean ignorable)post an asynchronous update event.voidsetDestroyListener(ClientCtrl.DestroyListener l)
-
-
-
Method Detail
-
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 pathmethod- HTTP method
-
-