tuwien.auto.calimero.knxnetip
Class ConnectionCloseEvent

java.lang.Object
  extended by java.util.EventObject
      extended by tuwien.auto.calimero.CloseEvent
          extended by tuwien.auto.calimero.knxnetip.ConnectionCloseEvent
All Implemented Interfaces:
java.io.Serializable

public class ConnectionCloseEvent
extends CloseEvent

An event providing information regarding the closing of an established KNXnet/IP communication connection.

See Also:
Serialized Form

Field Summary
static int CLIENT
          Identifier stating the close event was initiated by the client.
static int INTERNAL
          Identifier stating the close event was initiated internal (for example due to an unsupported protocol version).
static int SERVER
          Identifier stating the close event was initiated by the remote endpoint/server.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ConnectionCloseEvent(java.lang.Object source, int initiator, java.lang.String reason)
          Creates a new close event.
 
Method Summary
 int getInitiator()
          Returns the initiator of the close event, one of CLIENT, SERVER or INTERNAL.
 
Methods inherited from class tuwien.auto.calimero.CloseEvent
getReason, isUserRequest
 
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
 

Field Detail

CLIENT

public static final int CLIENT
Identifier stating the close event was initiated by the client.

See Also:
Constant Field Values

INTERNAL

public static final int INTERNAL
Identifier stating the close event was initiated internal (for example due to an unsupported protocol version).

See Also:
Constant Field Values

SERVER

public static final int SERVER
Identifier stating the close event was initiated by the remote endpoint/server.

See Also:
Constant Field Values
Constructor Detail

ConnectionCloseEvent

public ConnectionCloseEvent(java.lang.Object source,
                            int initiator,
                            java.lang.String reason)
Creates a new close event.

Parameters:
source - the object on which the Event initially occurred
initiator - initiator of the close event, one of CLIENT, SERVER or INTERNAL
reason - brief textual description
Method Detail

getInitiator

public final int getInitiator()
Returns the initiator of the close event, one of CLIENT, SERVER or INTERNAL.

Returns:
identifier of the initiator