org.media.mn8.protocol.jabber.datablocks
Class Login

java.lang.Object
  |
  +--org.media.mn8.protocol.jabber.JabberDataBlock
        |
        +--org.media.mn8.protocol.jabber.datablocks.Login

public class Login
extends JabberDataBlock

The class representing the login message. This has no incomming constructor as login messages are never received from the server.


Field Summary
 
Fields inherited from class org.media.mn8.protocol.jabber.JabberDataBlock
attributes, childBlocks, parent, textData
 
Constructor Summary
Login(String username, String password, String resource)
          Constructor.
 
Method Summary
 String getTagName()
          Method to return the tag name
 
Methods inherited from class org.media.mn8.protocol.jabber.JabberDataBlock
addAttributeToStringBuffer, addChild, addText, constructReply, getAttribute, getBytes, getChildBlocks, getParent, getTagEnd, getTagStart, getText, setAttribute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Login

public Login(String username,
             String password,
             String resource)
Constructor. Builds the string ready for sending to the server.

Parameters:
username - The username to log in with
password - The password to log in with
resource - The resource name to use
Method Detail

getTagName

public String getTagName()
Method to return the tag name

Overrides:
getTagName in class JabberDataBlock
Returns:
Always the string "iq".


"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."