jerklib.events.impl
Class MotdEventImpl

java.lang.Object
  extended by jerklib.events.impl.MotdEventImpl
All Implemented Interfaces:
IRCEvent, MotdEvent

public class MotdEventImpl
extends Object
implements MotdEvent

Author:
mohadib
See Also:
MotdEvent

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
MotdEventImpl(String rawEventData, Session session, String motdLine, String hostName)
           
 
Method Summary
 String getHostName()
          returns name of host this event originated from
 String getMotdLine()
          Gets a line of the MOTD
 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

MotdEventImpl

public MotdEventImpl(String rawEventData,
                     Session session,
                     String motdLine,
                     String hostName)
Method Detail

getMotdLine

public String getMotdLine()
Description copied from interface: MotdEvent
Gets a line of the MOTD

Specified by:
getMotdLine in interface MotdEvent
Returns:
One line of the MOTD

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.

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

getHostName

public String getHostName()
Description copied from interface: MotdEvent
returns name of host this event originated from

Specified by:
getHostName in interface MotdEvent
Returns:
hostname