|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientMessageContext
Nested Class Summary | |
---|---|
static interface |
ClientMessageContext.torrentURLHandler
|
Method Summary | |
---|---|
void |
addMessageListener(BrowserMessageListener listener)
|
void |
debug(java.lang.String message)
Displays a debug message tagged with the context ID. |
void |
debug(java.lang.String message,
java.lang.Throwable t)
Displays a debug message and exception tagged with the context ID. |
boolean |
executeInBrowser(java.lang.String javascript)
|
java.lang.Object |
getBrowserData(java.lang.String key)
|
long |
getContentNetworkID()
|
BrowserMessageDispatcher |
getDispatcher()
|
void |
removeMessageListener(BrowserMessageListener listener)
|
void |
removeMessageListener(java.lang.String listenerId)
|
boolean |
sendBrowserMessage(java.lang.String key,
java.lang.String op)
Sends a message to the JavaScript message dispatcher in the page. |
boolean |
sendBrowserMessage(java.lang.String key,
java.lang.String op,
java.util.Collection params)
|
boolean |
sendBrowserMessage(java.lang.String key,
java.lang.String op,
java.util.Map params)
Sends a message to the JavaScript message dispatcher in the page. |
void |
setBrowserData(java.lang.String key,
java.lang.Object value)
|
void |
setContentNetworkID(long id)
|
void |
setMessageDispatcher(BrowserMessageDispatcher dispatcher)
|
void |
setTorrentURLHandler(ClientMessageContext.torrentURLHandler handler)
|
Method Detail |
---|
void addMessageListener(BrowserMessageListener listener)
void removeMessageListener(java.lang.String listenerId)
void removeMessageListener(BrowserMessageListener listener)
java.lang.Object getBrowserData(java.lang.String key)
void setBrowserData(java.lang.String key, java.lang.Object value)
boolean sendBrowserMessage(java.lang.String key, java.lang.String op)
key
- identifies the listener to receive the messageop
- identifies the operation to performboolean sendBrowserMessage(java.lang.String key, java.lang.String op, java.util.Map params)
key
- identifies the listener to receive the messageop
- identifies the operation to performparams
- optional message parametersboolean executeInBrowser(java.lang.String javascript)
void debug(java.lang.String message)
message
- sent to the debug logvoid debug(java.lang.String message, java.lang.Throwable t)
message
- sent to the debug logt
- exception to log with messageBrowserMessageDispatcher getDispatcher()
boolean sendBrowserMessage(java.lang.String key, java.lang.String op, java.util.Collection params)
key
- op
- params
-
void setMessageDispatcher(BrowserMessageDispatcher dispatcher)
dispatcher
- void setTorrentURLHandler(ClientMessageContext.torrentURLHandler handler)
void setContentNetworkID(long id)
contentNetwork
- long getContentNetworkID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |