com.aelitis.azureus.core.messenger
Class ClientMessageContextImpl

java.lang.Object
  extended by com.aelitis.azureus.core.messenger.ClientMessageContextImpl
All Implemented Interfaces:
ClientMessageContext
Direct Known Subclasses:
BrowserContext

public abstract class ClientMessageContextImpl
extends Object
implements ClientMessageContext

Author:
TuxPaper

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.aelitis.azureus.core.messenger.ClientMessageContext
ClientMessageContext.torrentURLHandler
 
Constructor Summary
ClientMessageContextImpl(String id, BrowserMessageDispatcher dispatcher)
           
 
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.
 BrowserMessageDispatcher getDispatcher()
           
 String getID()
           
 void removeMessageListener(BrowserMessageListener listener)
           
 void removeMessageListener(String listenerId)
           
 void setMessageDispatcher(BrowserMessageDispatcher dispatcher)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aelitis.azureus.core.messenger.ClientMessageContext
executeInBrowser, getBrowserData, getContentNetworkID, sendBrowserMessage, sendBrowserMessage, sendBrowserMessage, setBrowserData, setContentNetworkID, setTorrentURLHandler
 

Constructor Detail

ClientMessageContextImpl

public ClientMessageContextImpl(String id,
                                BrowserMessageDispatcher dispatcher)
Method Detail

addMessageListener

public void addMessageListener(BrowserMessageListener listener)
Specified by:
addMessageListener in interface ClientMessageContext

debug

public void debug(String message)
Description copied from interface: ClientMessageContext
Displays a debug message tagged with the context ID.

Specified by:
debug in interface ClientMessageContext
Parameters:
message - sent to the debug log

debug

public void debug(String message,
                  Throwable t)
Description copied from interface: ClientMessageContext
Displays a debug message and exception tagged with the context ID.

Specified by:
debug in interface ClientMessageContext
Parameters:
message - sent to the debug log
t - exception to log with message

removeMessageListener

public void removeMessageListener(String listenerId)
Specified by:
removeMessageListener in interface ClientMessageContext

removeMessageListener

public void removeMessageListener(BrowserMessageListener listener)
Specified by:
removeMessageListener in interface ClientMessageContext

getDispatcher

public BrowserMessageDispatcher getDispatcher()
Specified by:
getDispatcher in interface ClientMessageContext

getID

public String getID()

setMessageDispatcher

public void setMessageDispatcher(BrowserMessageDispatcher dispatcher)
Specified by:
setMessageDispatcher in interface ClientMessageContext