jerklib.events.impl
Class UnresolvedHostnameErrorEventImpl

java.lang.Object
  extended by jerklib.events.impl.UnresolvedHostnameErrorEventImpl
All Implemented Interfaces:
ErrorEvent, IRCEvent, UnresolvedHostnameErrorEvent

public class UnresolvedHostnameErrorEventImpl
extends Object
implements UnresolvedHostnameErrorEvent

Author:
mohadib
See Also:
UnresolvedHostnameErrorEvent

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.ErrorEvent
ErrorEvent.ErrorType
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
UnresolvedHostnameErrorEventImpl(Session session, String rawEventData, String hostName, UnresolvedAddressException exception)
           
 
Method Summary
 ErrorEvent.ErrorType getErrorType()
          Get the error type
 UnresolvedAddressException getException()
          Gets the wrapped UnresolvedAddressException
 String getHostName()
          Gets the unresolvable hostname
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnresolvedHostnameErrorEventImpl

public UnresolvedHostnameErrorEventImpl(Session session,
                                        String rawEventData,
                                        String hostName,
                                        UnresolvedAddressException exception)
Method Detail

getException

public UnresolvedAddressException getException()
Description copied from interface: UnresolvedHostnameErrorEvent
Gets the wrapped UnresolvedAddressException

Specified by:
getException in interface UnresolvedHostnameErrorEvent
Returns:
UnresolvedAddressException

getHostName

public String getHostName()
Description copied from interface: UnresolvedHostnameErrorEvent
Gets the unresolvable hostname

Specified by:
getHostName in interface UnresolvedHostnameErrorEvent
Returns:
hostname that could not be resloved

getErrorType

public ErrorEvent.ErrorType getErrorType()
Description copied from interface: ErrorEvent
Get the error type

Specified by:
getErrorType in interface ErrorEvent
Returns:
ErrorType

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

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