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 java.lang.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(java.lang.String id, BrowserMessageDispatcher dispatcher)
           
 
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.
 BrowserMessageDispatcher getDispatcher()
           
 java.lang.String getID()
           
 void removeMessageListener(BrowserMessageListener listener)
           
 void removeMessageListener(java.lang.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(java.lang.String id,
                                BrowserMessageDispatcher dispatcher)
Method Detail

addMessageListener

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

debug

public void debug(java.lang.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(java.lang.String message,
                  java.lang.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(java.lang.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 java.lang.String getID()

setMessageDispatcher

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