|
|||||||||
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(String message)
Displays a debug message tagged with the context ID. |
void |
debug(String message,
Throwable t)
Displays a debug message and exception tagged with the context ID. |
boolean |
executeInBrowser(String javascript)
|
Object |
getBrowserData(String key)
|
long |
getContentNetworkID()
|
BrowserMessageDispatcher |
getDispatcher()
|
void |
removeMessageListener(BrowserMessageListener listener)
|
void |
removeMessageListener(String listenerId)
|
boolean |
sendBrowserMessage(String key,
String op)
Sends a message to the JavaScript message dispatcher in the page. |
boolean |
sendBrowserMessage(String key,
String op,
Collection params)
|
boolean |
sendBrowserMessage(String key,
String op,
Map params)
Sends a message to the JavaScript message dispatcher in the page. |
void |
setBrowserData(String key,
Object value)
|
void |
setContentNetworkID(long id)
|
void |
setMessageDispatcher(BrowserMessageDispatcher dispatcher)
|
void |
setTorrentURLHandler(ClientMessageContext.torrentURLHandler handler)
|
Method Detail |
---|
void addMessageListener(BrowserMessageListener listener)
void removeMessageListener(String listenerId)
void removeMessageListener(BrowserMessageListener listener)
Object getBrowserData(String key)
void setBrowserData(String key, Object value)
boolean sendBrowserMessage(String key, String op)
key
- identifies the listener to receive the messageop
- identifies the operation to performboolean sendBrowserMessage(String key, String op, Map params)
key
- identifies the listener to receive the messageop
- identifies the operation to performparams
- optional message parametersboolean executeInBrowser(String javascript)
void debug(String message)
message
- sent to the debug logvoid debug(String message, Throwable t)
message
- sent to the debug logt
- exception to log with messageBrowserMessageDispatcher getDispatcher()
boolean sendBrowserMessage(String key, String op, 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 |