ehsbe CommonsTM
Version 1.1.0rc3

com.ehsbe.commons.util
Class ClientInfoEvent

java.lang.Object
  extended by com.ehsbe.commons.util.ClientInfoEvent
All Implemented Interfaces:
Serializable

public class ClientInfoEvent
extends Object
implements Serializable

Info event to be send to one special or all clients.

Version:
$Revision: 432 $
Author:
Jens Elkner
See Also:
Serialized Form

Constructor Summary
ClientInfoEvent(String clientID, Level level, String msg, String details)
          Create a immutable event ready to be sent over the wire.
 
Method Summary
 String getClientID()
           
 String getDetails()
           
 Level getLevel()
           
 String getMsg()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientInfoEvent

public ClientInfoEvent(String clientID,
                       Level level,
                       String msg,
                       String details)
Create a immutable event ready to be sent over the wire.

Parameters:
clientID - if null, the message should be processed by all receiving clients. Otherwise only the client with the given connection ID should process the message.
level - The info level of the message. If null, Level.INFO will be used instead
msg - Message to sent to the client. Empty or null Strings are not allowed.
details - more details wrt. the message
Method Detail

getClientID

public String getClientID()
Returns:
the clientID.

getDetails

public String getDetails()
Returns:
the details.

getLevel

public Level getLevel()
Returns:
the level.

getMsg

public String getMsg()
Returns:
the msg.

ehsbe CommonsTM
Version 1.1.0rc3

Copyright ©2005-2009 EHSBE, Walther-Rathenau-Str. 58, 39104 Magdeburg, Sachsen-Anhalt, Germany. All Rights Reserved.