org.xnap.plugin.opennap.net.msg.server
Class ServerMessage

java.lang.Object
  extended by org.xnap.plugin.opennap.net.msg.Message
      extended by org.xnap.plugin.opennap.net.msg.server.ServerMessage
Direct Known Subclasses:
AcceptFailedMessage, AddUserToIgnoreListMessage, AllChannelListEntryMessage, AltDownloadAckMessage, BlockedFileMessage, BrowseResponseMessage, ChannelBanListEntryMessage, ChannelListEntryMessage, ChannelListMessage, ChannelTopicMessage, ChannelUserListEntryMessage, ClientDisconnectMessage, ClientStatisticsMessage, DataPortErrorMessage, DirectBrowseAckMessage, DirectBrowseErrorMessage, DirectBrowseRequestMessage, DownloadAckMessage, EmoteMessage, EndAllChannelListMessage, EndBrowseMessage, EndChannelBanListMessage, EndChannelListMessage, EndChannelUserListMessage, EndSearchMessage, ErrorMessage, GetErrorMessage, GlobalMessage, HotlistAckMessage, HotlistErrorMessage, InvalidNickMessage, JoinAckMessage, JoinMessage, LoginAckMessage, LoginAttemptMessage, LoginErrorMessage, MotdMessage, NickAlreadyRegisteredMessage, NickNotRegisteredMessage, OperatorMessage, PartChannelMessage, PingMessage, PingUserMessage, PongUserMessage, PrivateMessage, PublicMessage, QueueLimitMessage, RedirectClientMessage, SearchResponseMessage, ServerLinksMessage, ServerPingMessage, ServerStatisticsMessage, ServerStatsMessage, UnshareAllFilesMessage, UploadRequestMessage, UserPartedChannelMessage, UserSignoffMessage, UserSignonMessage, WhoisResponseMessage, WhowasResponseMessage

public class ServerMessage
extends Message


Field Summary
protected  boolean consumed
           
protected  java.lang.String data
           
protected  OpenNapServer server
           
 
Fields inherited from class org.xnap.plugin.opennap.net.msg.Message
type
 
Constructor Summary
protected ServerMessage(int type, java.lang.String data, int argc)
           
 
Method Summary
 void consume()
          OvernetMessage can be consumed: if the right listener gets the message, he consumes it and the other listeners won't get it.
 OpenNapServer getServer()
           
 boolean isConsumed()
          See if message is already consumed.
protected  void parse(QuotedStringTokenizer t)
           
 void received()
          Tell message to handle itself.
 void setServer(OpenNapServer newValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

server

protected OpenNapServer server

data

protected java.lang.String data

consumed

protected boolean consumed
Constructor Detail

ServerMessage

protected ServerMessage(int type,
                        java.lang.String data,
                        int argc)
                 throws InvalidMessageException
Throws:
InvalidMessageException
Method Detail

received

public void received()
Tell message to handle itself.


consume

public void consume()
OvernetMessage can be consumed: if the right listener gets the message, he consumes it and the other listeners won't get it.


isConsumed

public boolean isConsumed()
See if message is already consumed.


getServer

public OpenNapServer getServer()

setServer

public void setServer(OpenNapServer newValue)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

parse

protected void parse(QuotedStringTokenizer t)
              throws java.lang.Exception
Throws:
java.lang.Exception


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