org.tranche.servers
Class ServerMessageEvent

java.lang.Object
  extended by org.tranche.servers.ServerEvent
      extended by org.tranche.servers.ServerMessageEvent
Direct Known Subclasses:
ServerMessageDownEvent, ServerMessageUpEvent

public class ServerMessageEvent
extends ServerEvent

Used in server listeners to describe the communications between client and server.

Author:
James "Augie" Hill - augman85@gmail.com

Field Summary
 
Fields inherited from class org.tranche.servers.ServerEvent
AUTO_BAN, AUTO_UNBAN, CALLBACK, CONNECT, MESSAGE, USER_BAN, USER_UNBAN
 
Constructor Summary
ServerMessageEvent(java.lang.String url, long callbackId)
           
 
Method Summary
 long getCallbackId()
          Returns the callback ID assigned to this message.
 java.lang.String toString()
          Returns a human-readable message that describes this event.
 
Methods inherited from class org.tranche.servers.ServerEvent
getTimestamp, getType, getTypeString, getUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerMessageEvent

public ServerMessageEvent(java.lang.String url,
                          long callbackId)
Parameters:
url -
callbackId -
Method Detail

getCallbackId

public long getCallbackId()

Returns the callback ID assigned to this message.

Returns:

toString

public java.lang.String toString()

Returns a human-readable message that describes this event.

Overrides:
toString in class ServerEvent
Returns:


This code is free for use both commercially and non-commercially as stated in the project's license