org.xnap.plugin.opennap.net.msg.client
Class ClientMessage

java.lang.Object
  extended by org.xnap.plugin.opennap.net.msg.Message
      extended by org.xnap.plugin.opennap.net.msg.client.ClientMessage
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
AcceptFailedMessage, AddHotlistEntryMessage, AddUserToIgnoreListMessage, AltDownloadRequestMessage, BrowseRequestMessage, ChangeDataPortMessage, ChannelBanClearMessage, ChannelBanListRequestMessage, ChannelBanMessage, ChannelTopicMessage, ChannelUnbanMessage, ClearIgnoreListMessage, ClientStatisticsMessage, DataPortErrorMessage, DirectBrowseAckMessage, DirectBrowseRequestMessage, DirectShareFileMessage, DownloadCompleteMessage, DownloadingFileMessage, DownloadRequestMessage, EmoteMessage, JoinChannelMessage, ListChannelsMessage, ListUsersInChannelMessage, LoginMessage, NewUserLoginMessage, NickCheckMessage, PartChannelMessage, PingServerMessage, PingUserMessage, PongUserMessage, PrivateMessage, PublicMessage, QueueLimitMessage, RegisterUserMessage, RemoveChannelOpMessage, RemoveHotlistEntryMessage, RemoveUserFromIgnoreListMessage, SearchRequestMessage, ServerStatisticsMessage, ServerStatsMessage, ServerVersionMessage, SetChannelOpMessage, ShareFileMessage, ShowAllChannelsMessage, UnshareAllFilesMessage, UnshareFileMessage, UploadAckMessage, UploadCompleteMessage, UploadingFileMessage, UserIgnoreListMessage, WhoisRequestMessage

public class ClientMessage
extends Message
implements java.lang.Comparable


Field Summary
 java.lang.String data
           
 java.util.Hashtable ht
           
 ExceptionListener listener
           
static int PRIORITY_HIGH
          Priority for urgent messages.
static int PRIORITY_LOW
          Priority for not so urgent messages.
static int PRIORITY_NORMAL
          Priority for normal messages.
 
Fields inherited from class org.xnap.plugin.opennap.net.msg.Message
type
 
Constructor Summary
protected ClientMessage(int type)
           
protected ClientMessage(int type, java.lang.String data)
           
 
Method Summary
 void add(OpenNapServerVersion sv, java.lang.String d)
           
 int compareTo(java.lang.Object o)
           
 void failed()
          Notifies the exception listener that the message could not be sent.
 java.lang.String getData()
           
 java.lang.String getData(OpenNapServerVersion version)
           
 ExceptionListener getExceptionListener()
           
 int getPriority()
           
 int getType()
           
 void setExceptionListener(ExceptionListener newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIORITY_HIGH

public static int PRIORITY_HIGH
Priority for urgent messages.


PRIORITY_NORMAL

public static int PRIORITY_NORMAL
Priority for normal messages.


PRIORITY_LOW

public static int PRIORITY_LOW
Priority for not so urgent messages.


data

public java.lang.String data

ht

public java.util.Hashtable ht

listener

public ExceptionListener listener
Constructor Detail

ClientMessage

protected ClientMessage(int type,
                        java.lang.String data)

ClientMessage

protected ClientMessage(int type)
Method Detail

add

public void add(OpenNapServerVersion sv,
                java.lang.String d)

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

failed

public void failed()
Notifies the exception listener that the message could not be sent.


getExceptionListener

public ExceptionListener getExceptionListener()

setExceptionListener

public void setExceptionListener(ExceptionListener newValue)

getData

public java.lang.String getData(OpenNapServerVersion version)

getData

public java.lang.String getData()

getPriority

public int getPriority()

getType

public int getType()


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