com.myjavaworld.ftp
Class ControlConnectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.myjavaworld.ftp.ControlConnectionEvent
All Implemented Interfaces:
Serializable

public class ControlConnectionEvent
extends EventObject

An event generated by objects of ControlConnection. This event is generated when ever a command is sent to the remote host or a reply is received from the remote host.

Version:
2.0
Author:
Sai Pullabhotla, psai [at] jMethods [dot] com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ControlConnectionEvent(Object source, String message)
          Constructs a ControlConnectionEvent object with the specified source and message.
 
Method Summary
 String getMessage()
          Gets the descriptive message of this event.
 String toString()
          Converts this event object to a String and returns it.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControlConnectionEvent

public ControlConnectionEvent(Object source,
                              String message)
Constructs a ControlConnectionEvent object with the specified source and message.

Parameters:
source - The object that generated this event.
message - the description of the event.
Method Detail

getMessage

public String getMessage()
Gets the descriptive message of this event.

Returns:
message Description of this event.

toString

public String toString()
Converts this event object to a String and returns it.

Overrides:
toString in class EventObject
Returns:
String representation of this event.


Copyright © 2000-2012 jMethods, Inc.. All Rights Reserved.