net.directj.csf
Class ClientEvent
java.lang.Object
|
+--java.util.EventObject
|
+--net.directj.csf.ClientEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ClientEvent
- extends java.util.EventObject
A client event is fired by the client when it receive data from the server.
A client event can be fired in various siuation, like a new connection,
a end of a connection, a request from the server, ...
See the different implementation of client to know more about the differents event that can be fired.
- Version:
- 0.1.1
- Author:
- CARTAPANIS Alexandre <earendil@jprolog.net>
- See Also:
- Serialized Form
Field Summary |
private byte[] |
data
The event's data. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
ClientEvent(byte[] _data,
Client _client)
Creates a new ClientEvent. |
Method Summary |
Client |
getClient()
Returns the Client on which the event initially occurred.
|
byte[] |
getData()
Returns the data associated with this event. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
data
private byte[] data
- The event's data.
ClientEvent
public ClientEvent(byte[] _data,
Client _client)
- Creates a new ClientEvent.
- Parameters:
_data
- The data received by the client._client
- The client that fired this event.
getData
public byte[] getData()
- Returns the data associated with this event.
- Returns:
byte[]
- The data, as an array of bytes.
getClient
public Client getClient()
- Returns the Client on which the event initially occurred.
Equivalent to
(Client) getSource();
.
- Returns:
Client
- The client that fired this event.
Copyright © 2002 CARTAPANIS Alexandre
This page was last updated on May 10 2003