org.xnap.plugin.opennap.net.msg
Class MessageFactory

java.lang.Object
  extended by org.xnap.plugin.opennap.net.msg.MessageFactory

public class MessageFactory
extends java.lang.Object


Field Summary
static int ACCEPT_FAILED
           
static int ADD_USER_TO_IGNORE_LIST
           
static int ALTERNATE_DOWNLOAD_ACK
           
static int BAN_LIST_ENTRY
           
static int BANNED_USERS
           
static int BLOCKED_FILE
           
static int BROWSE_RESPONSE
           
static int CHANNEL_BAN_LIST
           
static int CHANNEL_BAN_LIST_ENTRY
           
static int CHANNEL_LIST
           
static int CHANNEL_LIST_ENTRY
           
static int CHANNEL_MOTD
           
static int CHANNEL_USER_LIST_ENTRY
           
static int CLEAR_IGNORE_LIST
           
static int CLIENT_DISCONNECT
           
static int CONNECTION_TEST
           
static int CYCLE_CLIENT
           
static int DATA_PORT_ERROR
           
static int DIRECT_BROWSE_ACCEPT
           
static int DIRECT_BROWSE_ERROR
           
static int DIRECT_BROWSE_REQUEST
           
static int DOWNLOAD_ACK
           
static int EMOTE
           
static int END_BROWSE_LIST
           
static int END_CHANNEL_LIST
           
static int END_CHANNEL_USER_LIST
           
static int END_RESUME_SEARCH
           
static int END_SEARCH_RESPONSE
           
static int END_USER_LIST
           
static int ERROR_MESSAGE
           
static int GET_ERROR
           
static int GLOBAL_MESSAGE
           
static int HOTLIST_ACK
           
static int HOTLIST_ERROR
           
static int INVALID_NICK
           
static int INVITE_USER
           
static int JOIN_ACK
           
static int JOIN_MESSAGE
           
static int LIST_CHANNELS
           
static int LISTEN_TEST
           
static int LOGIN_ACK
           
static int LOGIN_ATTEMPT
           
static int LOGIN_ERROR
           
static int MOTD
           
static int NICK_ALREADY_REGISTERED
           
static int NICK_NOT_REGISTERED
           
static int OPERATOR_MESSAGE
           
static int PART_CHANNEL
           
static int PING_USER
           
static int PONG_RESPONSE
           
static int PRIVATE_MESSAGE
           
static int PUBLIC_MESSAGE
           
static int QUEUE_LIMIT
           
static int RESUME_SEARCH_RESPONSE
           
static int SEARCH_RESPONSE
           
static int SERVER_PING
           
static int SERVER_STATS
           
static int SET_DATA_PORT
           
static int SPEED_RESPONSE
           
static int UNSHARE_ALL_FILES
           
static int UPLOAD_REQUEST
           
static int USER_ALREADY_IGNORED
           
static int USER_IGNORE_LIST
           
static int USER_IGNORE_LIST_ENTRY
           
static int USER_LIST_ENTRY
           
static int USER_NOT_IGNORED
           
static int USER_PARTED_CHANNEL
           
static int USER_SIGNOFF
           
static int USER_SIGNON
           
static int WHOIS_RESPONSE
           
static int WHOWAS_RESPONSE
           
 
Constructor Summary
MessageFactory()
           
 
Method Summary
static ServerMessage create(OpenNapServer source, int type, java.lang.String data)
           
static java.lang.String getMessageName(int id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGIN_ERROR

public static final int LOGIN_ERROR
See Also:
Constant Field Values

LOGIN_ACK

public static final int LOGIN_ACK
See Also:
Constant Field Values

NICK_NOT_REGISTERED

public static final int NICK_NOT_REGISTERED
See Also:
Constant Field Values

NICK_ALREADY_REGISTERED

public static final int NICK_ALREADY_REGISTERED
See Also:
Constant Field Values

INVALID_NICK

public static final int INVALID_NICK
See Also:
Constant Field Values

UNSHARE_ALL_FILES

public static final int UNSHARE_ALL_FILES
See Also:
Constant Field Values

SEARCH_RESPONSE

public static final int SEARCH_RESPONSE
See Also:
Constant Field Values

END_SEARCH_RESPONSE

public static final int END_SEARCH_RESPONSE
See Also:
Constant Field Values

DOWNLOAD_ACK

public static final int DOWNLOAD_ACK
See Also:
Constant Field Values

PRIVATE_MESSAGE

public static final int PRIVATE_MESSAGE
See Also:
Constant Field Values

GET_ERROR

public static final int GET_ERROR
See Also:
Constant Field Values

USER_SIGNON

public static final int USER_SIGNON
See Also:
Constant Field Values

USER_SIGNOFF

public static final int USER_SIGNOFF
See Also:
Constant Field Values

BROWSE_RESPONSE

public static final int BROWSE_RESPONSE
See Also:
Constant Field Values

END_BROWSE_LIST

public static final int END_BROWSE_LIST
See Also:
Constant Field Values

SERVER_STATS

public static final int SERVER_STATS
See Also:
Constant Field Values

RESUME_SEARCH_RESPONSE

public static final int RESUME_SEARCH_RESPONSE
See Also:
Constant Field Values

END_RESUME_SEARCH

public static final int END_RESUME_SEARCH
See Also:
Constant Field Values

HOTLIST_ACK

public static final int HOTLIST_ACK
See Also:
Constant Field Values

HOTLIST_ERROR

public static final int HOTLIST_ERROR
See Also:
Constant Field Values

CLIENT_DISCONNECT

public static final int CLIENT_DISCONNECT
See Also:
Constant Field Values

USER_IGNORE_LIST

public static final int USER_IGNORE_LIST
See Also:
Constant Field Values

USER_IGNORE_LIST_ENTRY

public static final int USER_IGNORE_LIST_ENTRY
See Also:
Constant Field Values

ADD_USER_TO_IGNORE_LIST

public static final int ADD_USER_TO_IGNORE_LIST
See Also:
Constant Field Values

USER_NOT_IGNORED

public static final int USER_NOT_IGNORED
See Also:
Constant Field Values

USER_ALREADY_IGNORED

public static final int USER_ALREADY_IGNORED
See Also:
Constant Field Values

CLEAR_IGNORE_LIST

public static final int CLEAR_IGNORE_LIST
See Also:
Constant Field Values

PART_CHANNEL

public static final int PART_CHANNEL
See Also:
Constant Field Values

PUBLIC_MESSAGE

public static final int PUBLIC_MESSAGE
See Also:
Constant Field Values

ERROR_MESSAGE

public static final int ERROR_MESSAGE
See Also:
Constant Field Values

JOIN_ACK

public static final int JOIN_ACK
See Also:
Constant Field Values

JOIN_MESSAGE

public static final int JOIN_MESSAGE
See Also:
Constant Field Values

USER_PARTED_CHANNEL

public static final int USER_PARTED_CHANNEL
See Also:
Constant Field Values

CHANNEL_USER_LIST_ENTRY

public static final int CHANNEL_USER_LIST_ENTRY
See Also:
Constant Field Values

END_CHANNEL_USER_LIST

public static final int END_CHANNEL_USER_LIST
See Also:
Constant Field Values

CHANNEL_BAN_LIST

public static final int CHANNEL_BAN_LIST
See Also:
Constant Field Values

CHANNEL_BAN_LIST_ENTRY

public static final int CHANNEL_BAN_LIST_ENTRY
See Also:
Constant Field Values

CHANNEL_MOTD

public static final int CHANNEL_MOTD
See Also:
Constant Field Values

INVITE_USER

public static final int INVITE_USER
See Also:
Constant Field Values

ALTERNATE_DOWNLOAD_ACK

public static final int ALTERNATE_DOWNLOAD_ACK
See Also:
Constant Field Values

SPEED_RESPONSE

public static final int SPEED_RESPONSE
See Also:
Constant Field Values

WHOIS_RESPONSE

public static final int WHOIS_RESPONSE
See Also:
Constant Field Values

WHOWAS_RESPONSE

public static final int WHOWAS_RESPONSE
See Also:
Constant Field Values

UPLOAD_REQUEST

public static final int UPLOAD_REQUEST
See Also:
Constant Field Values

ACCEPT_FAILED

public static final int ACCEPT_FAILED
See Also:
Constant Field Values

SET_DATA_PORT

public static final int SET_DATA_PORT
See Also:
Constant Field Values

BAN_LIST_ENTRY

public static final int BAN_LIST_ENTRY
See Also:
Constant Field Values

LIST_CHANNELS

public static final int LIST_CHANNELS
See Also:
Constant Field Values

CHANNEL_LIST_ENTRY

public static final int CHANNEL_LIST_ENTRY
See Also:
Constant Field Values

QUEUE_LIMIT

public static final int QUEUE_LIMIT
See Also:
Constant Field Values

MOTD

public static final int MOTD
See Also:
Constant Field Values

DATA_PORT_ERROR

public static final int DATA_PORT_ERROR
See Also:
Constant Field Values

OPERATOR_MESSAGE

public static final int OPERATOR_MESSAGE
See Also:
Constant Field Values

GLOBAL_MESSAGE

public static final int GLOBAL_MESSAGE
See Also:
Constant Field Values

BANNED_USERS

public static final int BANNED_USERS
See Also:
Constant Field Values

DIRECT_BROWSE_REQUEST

public static final int DIRECT_BROWSE_REQUEST
See Also:
Constant Field Values

DIRECT_BROWSE_ACCEPT

public static final int DIRECT_BROWSE_ACCEPT
See Also:
Constant Field Values

DIRECT_BROWSE_ERROR

public static final int DIRECT_BROWSE_ERROR
See Also:
Constant Field Values

LOGIN_ATTEMPT

public static final int LOGIN_ATTEMPT
See Also:
Constant Field Values

SERVER_PING

public static final int SERVER_PING
See Also:
Constant Field Values

PING_USER

public static final int PING_USER
See Also:
Constant Field Values

PONG_RESPONSE

public static final int PONG_RESPONSE
See Also:
Constant Field Values

CYCLE_CLIENT

public static final int CYCLE_CLIENT
See Also:
Constant Field Values

EMOTE

public static final int EMOTE
See Also:
Constant Field Values

USER_LIST_ENTRY

public static final int USER_LIST_ENTRY
See Also:
Constant Field Values

END_CHANNEL_LIST

public static final int END_CHANNEL_LIST
See Also:
Constant Field Values

CHANNEL_LIST

public static final int CHANNEL_LIST
See Also:
Constant Field Values

END_USER_LIST

public static final int END_USER_LIST
See Also:
Constant Field Values

CONNECTION_TEST

public static final int CONNECTION_TEST
See Also:
Constant Field Values

LISTEN_TEST

public static final int LISTEN_TEST
See Also:
Constant Field Values

BLOCKED_FILE

public static final int BLOCKED_FILE
See Also:
Constant Field Values
Constructor Detail

MessageFactory

public MessageFactory()
Method Detail

create

public static ServerMessage create(OpenNapServer source,
                                   int type,
                                   java.lang.String data)
                            throws InvalidMessageException
Throws:
InvalidMessageException

getMessageName

public static java.lang.String getMessageName(int id)


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