jmc.connection
Class CommunicationManager

java.lang.Object
  extended by jmc.connection.CommunicationManager
All Implemented Interfaces:
ExceptionListener, ParserListener

public class CommunicationManager
extends java.lang.Object
implements ParserListener, ExceptionListener

Connector Manager class Modified by Gabriele Bianchi 04/01/2006


Constructor Summary
CommunicationManager(MidletEventListener _midlet)
           
 
Method Summary
 void blank()
          Sends out a keep alive space character.
 void connect(int state)
          Makes connection Modified by Gabriele Bianchi 04/01/2006
 void disconnect()
          Disconnect
 void httpConnect()
           
 void nodeEnd(Node _node)
          Called whenever the parser finishes a node.
 void nodeStart(Node _node)
          Called when the parser starts a new node ...
 void notifyConnect(javax.microedition.io.StreamConnection _inConn, java.io.InputStream _is, java.io.OutputStream _os)
          Notifies connection to midlet Modified by Gabriele Bianchi 05/01/2006
 void notifyNoConnectionOn(java.lang.String reason)
           
 void prologEnd(Node _node)
          Called when the xml prolog has been read.
 void reportException(java.lang.Exception _e)
          Exceptions handling Modified by Gabriele Bianchi 05/01/2006
 void reportException(java.lang.Thread _t, java.lang.Exception _e)
          Exceptions handling
 void reportRegistrationError(java.lang.Exception _e, boolean disconnect)
           
 void terminateStream()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommunicationManager

public CommunicationManager(MidletEventListener _midlet)
Method Detail

connect

public void connect(int state)
Makes connection Modified by Gabriele Bianchi 04/01/2006


httpConnect

public void httpConnect()

notifyConnect

public void notifyConnect(javax.microedition.io.StreamConnection _inConn,
                          java.io.InputStream _is,
                          java.io.OutputStream _os)
Notifies connection to midlet Modified by Gabriele Bianchi 05/01/2006


terminateStream

public void terminateStream()

disconnect

public void disconnect()
Disconnect


prologEnd

public void prologEnd(Node _node)
Description copied from interface: ParserListener
Called when the xml prolog has been read. The prolog is the like string. Node's name and attributes (with values) are mapped.

Specified by:
prologEnd in interface ParserListener
Parameters:
_node - Contains all infos about the prolog.

nodeStart

public void nodeStart(Node _node)
Description copied from interface: ParserListener
Called when the parser starts a new node ..., except for nodes like which only call the nodeEnd method. Node's name and attributes (with values) are mapped, contrary to text and children nodes (reported later with the nodeEnd method).

Specified by:
nodeStart in interface ParserListener
Parameters:
Node -

nodeEnd

public void nodeEnd(Node _node)
Description copied from interface: ParserListener
Called whenever the parser finishes a node. Node's name and attributes (with values) are mapped, in addition to text and children nodes.

Specified by:
nodeEnd in interface ParserListener
Parameters:
Node -

blank

public void blank()
Sends out a keep alive space character.

Specified by:
blank in interface ParserListener

reportException

public void reportException(java.lang.Thread _t,
                            java.lang.Exception _e)
Exceptions handling

Specified by:
reportException in interface ExceptionListener
Parameters:
Exception -

reportException

public void reportException(java.lang.Exception _e)
Exceptions handling Modified by Gabriele Bianchi 05/01/2006

Specified by:
reportException in interface ExceptionListener
Parameters:
Exception -

reportRegistrationError

public void reportRegistrationError(java.lang.Exception _e,
                                    boolean disconnect)
Specified by:
reportRegistrationError in interface ExceptionListener
Parameters:
Exception -

notifyNoConnectionOn

public void notifyNoConnectionOn(java.lang.String reason)