org.xnap.plugin.opennap.net
Class OpenNapAbstractChannel

java.lang.Object
  extended by org.xnap.chat.AbstractChannel
      extended by org.xnap.plugin.opennap.net.OpenNapAbstractChannel
All Implemented Interfaces:
Channel, ChannelInfo, OpenNapConsole, ExceptionListener
Direct Known Subclasses:
OpenNapChannel, PrivateOpenNapChannel

public abstract class OpenNapAbstractChannel
extends AbstractChannel
implements OpenNapConsole

Manages a list of channels.


Field Summary
protected  OpenNapServer server
           
 
Fields inherited from class org.xnap.chat.AbstractChannel
cs
 
Fields inherited from interface org.xnap.chat.Channel
AWAY_MESSAGE_INTERVAL
 
Constructor Summary
OpenNapAbstractChannel(OpenNapServer server, java.lang.String name)
           
 
Method Summary
 void exceptionThrown(java.lang.Exception e)
           
 ChatProvider getProvider()
          Returns a reference to the chat provider.
 OpenNapServer getServer()
           
 boolean isLocal(Peer peer)
          Returns true, if peer is the local peer.
 void println(java.lang.String s)
           
 
Methods inherited from class org.xnap.chat.AbstractChannel
actionMessageReceived, add, addChannelListener, errorReceived, getCommands, getIcon, getName, getPeerCount, getPeers, getPrefix, getTopic, infoReceived, joined, messageReceived, parted, peerChanged, remove, removeChannelListener, setTopic, topicChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xnap.chat.Channel
close, getActions, getPeerActions, isJoined, sendMessage
 

Field Detail

server

protected OpenNapServer server
Constructor Detail

OpenNapAbstractChannel

public OpenNapAbstractChannel(OpenNapServer server,
                              java.lang.String name)
Method Detail

exceptionThrown

public void exceptionThrown(java.lang.Exception e)
Specified by:
exceptionThrown in interface ExceptionListener

getProvider

public ChatProvider getProvider()
Description copied from interface: Channel
Returns a reference to the chat provider.

Specified by:
getProvider in interface Channel
Returns:
null, if the channel has no provider; the provider, otherwise

getServer

public OpenNapServer getServer()
Specified by:
getServer in interface OpenNapConsole

isLocal

public boolean isLocal(Peer peer)
Description copied from interface: Channel
Returns true, if peer is the local peer. XNap does not beep if messages are received from local peers.

Specified by:
isLocal in interface Channel

println

public void println(java.lang.String s)
Specified by:
println in interface OpenNapConsole


Copyright © 2001-2005 XNap Team. All Rights Reserved.