jerklib.events
Interface IRCEvent

All Known Subinterfaces:
AwayEvent, ChannelListEvent, ConnectionCompleteEvent, ConnectionLostEvent, CtcpEvent, DccAcceptEvent, DccChatEvent, DccEvent, DccResumeEvent, DccSendEvent, DccUnknownEvent, ErrorEvent, InviteEvent, JoinCompleteEvent, JoinEvent, KickEvent, MessageEvent, ModeEvent, MotdEvent, NickChangeEvent, NickInUseEvent, NickListEvent, NoticeEvent, NumericErrorEvent, PartEvent, QuitEvent, ServerInformationEvent, ServerVersionEvent, TopicEvent, UnresolvedHostnameErrorEvent, WhoEvent, WhoisEvent, WhowasEvent
All Known Implementing Classes:
AwayEventImpl, ChannelListEventImpl, ConnectionCompleteEventImpl, ConnectionLostEventImpl, CtcpEventImpl, DccAcceptEventImpl, DccChatEventImpl, DccResumeEventImpl, DccSendEventImpl, DccUnknownEventImpl, InviteEventImpl, JoinCompleteEventImpl, JoinEventImpl, KickEventImpl, MessageEventImpl, ModeEventImpl, MotdEventImpl, NickChangeEventImpl, NickInUseEventImpl, NickListEventImpl, NoticeEventImpl, NumericEventImpl, PartEventImpl, QuitEventImpl, ServerInformationEventImpl, ServerVersionEventImpl, TopicEventImpl, UnresolvedHostnameErrorEventImpl, WhoEventImpl, WhoisEventImpl, WhowasEventImpl

public interface IRCEvent

The base interface for all JerkLib events.

This Interface provieds the bare essintails for an IRCEvent. The raw event data, host , port , and IRCConnection object.

Author:
mohadib

Nested Class Summary
static class IRCEvent.Type
          Type enum is used to determine type.
 
Method Summary
 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.
 

Method Detail

getType

IRCEvent.Type getType()
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.

Returns:
Type of event

getRawEventData

String getRawEventData()
Returns the raw IRC data that makes up this event

Returns:
Raw IRC event text.

getSession

Session getSession()
Gets session for connection

Returns:
Session