jmc
Class StanzaReader

java.lang.Object
  extended by jmc.StanzaReader

public class StanzaReader
extends java.lang.Object

Class for reading incoming stanzas


Field Summary
protected  int CONNECTION_COMPLETED
           
 int internalstate
           
protected  int REGISTRATION
           
protected  java.lang.String stanzaFrom
           
protected  java.lang.String stanzaId
           
protected  java.lang.String stanzaTo
           
protected  java.lang.String stanzaType
           
protected  int WAIT_LOGIN_PARAMS
           
protected  int WAIT_LOGIN_RESULT
           
protected  int WAIT_ROSTER
           
protected  int WAIT_SESSION
           
 
Constructor Summary
StanzaReader(ExceptionListener _exceptionListener, JabberListener _jabberListener, int state)
           
 
Method Summary
 void read(Node _node)
          Read the Node objet in argument
protected  void readIq(Node _node)
          Reads an iq stanza and answers to the server Modified by Gabriele Bianchi 04/01/2006
protected  void readMessage(Node _node)
          Reads a message stanza and notify to midlet Modified by Gabriele Bianchi 17/01/2006
protected  void readPresence(Node _node)
          Reads a presence node and notify to midlet Modified by Gabriele Bianchi 04/01/2006
protected  void readRoster(Node _node)
          Reads a roster stanza, saves info in Datas and notify to midlet
 void setRosterState()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stanzaId

protected java.lang.String stanzaId

stanzaType

protected java.lang.String stanzaType

stanzaFrom

protected java.lang.String stanzaFrom

stanzaTo

protected java.lang.String stanzaTo

internalstate

public int internalstate

WAIT_LOGIN_PARAMS

protected final int WAIT_LOGIN_PARAMS
See Also:
Constant Field Values

WAIT_LOGIN_RESULT

protected final int WAIT_LOGIN_RESULT
See Also:
Constant Field Values

WAIT_SESSION

protected final int WAIT_SESSION
See Also:
Constant Field Values

WAIT_ROSTER

protected final int WAIT_ROSTER
See Also:
Constant Field Values

CONNECTION_COMPLETED

protected final int CONNECTION_COMPLETED
See Also:
Constant Field Values

REGISTRATION

protected final int REGISTRATION
See Also:
Constant Field Values
Constructor Detail

StanzaReader

public StanzaReader(ExceptionListener _exceptionListener,
                    JabberListener _jabberListener,
                    int state)
Method Detail

read

public void read(Node _node)
Read the Node objet in argument

Parameters:
Node -

readIq

protected void readIq(Node _node)
Reads an iq stanza and answers to the server Modified by Gabriele Bianchi 04/01/2006

Parameters:
_node -

readPresence

protected void readPresence(Node _node)
Reads a presence node and notify to midlet Modified by Gabriele Bianchi 04/01/2006

Parameters:
_node -

readRoster

protected void readRoster(Node _node)
Reads a roster stanza, saves info in Datas and notify to midlet

Parameters:
_node -

readMessage

protected void readMessage(Node _node)
Reads a message stanza and notify to midlet Modified by Gabriele Bianchi 17/01/2006

Parameters:
_node -

setRosterState

public void setRosterState()