jerklib.events.impl
Class ConnectionCompleteEventImpl

java.lang.Object
  extended by jerklib.events.impl.ConnectionCompleteEventImpl
All Implemented Interfaces:
ConnectionCompleteEvent, IRCEvent

public class ConnectionCompleteEventImpl
extends Object
implements ConnectionCompleteEvent

Author:
mohadib
See Also:
ConnectionCompleteEvent

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
ConnectionCompleteEventImpl(String rawEventData, String hostName, Session session, String oldHostName)
           
 
Method Summary
 String getActualHostName()
          Gets the actual hostname
 String getOldHostName()
          Get the hostname used for the requested connection
 String getRawEventData()
          Returns the raw IRC data that makes up this event
 Session getSession()
          Gets session for connection
 IRCEvent.Type getType()
          Used to find out the exact type of event the IRCEvent object is.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionCompleteEventImpl

public ConnectionCompleteEventImpl(String rawEventData,
                                   String hostName,
                                   Session session,
                                   String oldHostName)
Method Detail

getOldHostName

public String getOldHostName()
Description copied from interface: ConnectionCompleteEvent
Get the hostname used for the requested connection

Specified by:
getOldHostName in interface ConnectionCompleteEvent
Returns:
old host name

getType

public IRCEvent.Type getType()
Description copied from interface: IRCEvent
Used to find out the exact type of event the IRCEvent object is. The IRCEvent object can be cast into a more specific event object to get access to convience methods for the specific event types.

Specified by:
getType in interface IRCEvent
Returns:
Type of event

getRawEventData

public String getRawEventData()
Description copied from interface: IRCEvent
Returns the raw IRC data that makes up this event

Specified by:
getRawEventData in interface IRCEvent
Returns:
Raw IRC event text.

getActualHostName

public String getActualHostName()
Description copied from interface: ConnectionCompleteEvent
Gets the actual hostname

Specified by:
getActualHostName in interface ConnectionCompleteEvent
Returns:
actual host name

getSession

public Session getSession()
Description copied from interface: IRCEvent
Gets session for connection

Specified by:
getSession in interface IRCEvent
Returns:
Session

toString

public String toString()
Overrides:
toString in class Object