com.web_visage.ichat
Class IChatSender

java.lang.Object
  extended by com.web_visage.ichat.IChatSender

public final class IChatSender
extends java.lang.Object

Class representing the iChat sender format.

iChat sender format is following:
[ip-address]/[netbios name]/[login]

example:
192.168.1.134/JEDI/Jedi

Author:
K.Baturytski

Constructor Summary
IChatSender(java.lang.String anIpAddress, java.lang.String aNetbiosName, java.lang.String aLogin)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object anObj)
           
static IChatSender fromString(java.lang.String aRawString)
          Restores a sender from a raw string representation.
 java.lang.String getIpAddress()
          Returns the ipAddress.
 java.lang.String getLogin()
          Returns the login.
 java.lang.String getNetbiosName()
          Returns the netbiosName.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IChatSender

public IChatSender(java.lang.String anIpAddress,
                   java.lang.String aNetbiosName,
                   java.lang.String aLogin)
Constructor.

Parameters:
anIpAddress - - sender's ip
aNetbiosName - - sender's netbios name
aLogin - - sender's system login
Method Detail

getIpAddress

public java.lang.String getIpAddress()
Returns the ipAddress.

Returns:

getLogin

public java.lang.String getLogin()
Returns the login.

Returns:

getNetbiosName

public java.lang.String getNetbiosName()
Returns the netbiosName.

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

equals

public boolean equals(java.lang.Object anObj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

fromString

public static IChatSender fromString(java.lang.String aRawString)
                              throws MalformedSenderException
Restores a sender from a raw string representation.

Parameters:
aRawString - - raw string input
Returns:
Throws:
MalformedSenderException