org.media.mn8.concepts
Class JabberClientConcept

java.lang.Object
  |
  +--org.media.mn8.Concept
        |
        +--org.media.mn8.JavaConcept
              |
              +--org.media.mn8.concepts.JabberClientConcept
All Implemented Interfaces:
JabberListener

public class JabberClientConcept
extends JavaConcept
implements JabberListener

Version:
$Revision: 1.7 $ $Date: 2002/10/10 22:59:19 $
Author:
Szabo Csaba

Field Summary
 ElementConcept response
           
 
Fields inherited from class org.media.mn8.Concept
_conceptLabel, _isHidden, _resourceURI, _showEmpty
 
Constructor Summary
JabberClientConcept()
          The default constructor
 
Method Summary
 void addHandler(Concept concept, StringConcept methodName)
          The handler method
 void beginConversation()
          Method to being the conversation whit the
 void blockArrived(JabberDataBlock data)
          Method to respond to the arrival of Jabber data block
 Object clone()
          Clone this object
 void connectionTerminated(Exception e)
          Method to handle the termination of a connection
 void connectToJabberServer()
          Method to connect to the jabber server
 JabberClientConcept create(StringConcept host, IntegerConcept port)
          Method to set up the jabber server host and port
 ConceptDefinition getConceptDefinition()
          Return the JabberConceptDefinition object
 void login(StringConcept user, StringConcept pwd)
          Method to log into Jabber server.
 void send(StringConcept to, StringConcept message)
          Method to send to specified user the specified message
 void send(StringConcept to, StringConcept message, StringConcept html)
          Method to send to specified user the specified message
 
Methods inherited from class org.media.mn8.JavaConcept
create, equals, equals, opEQ, toTXT, toXML
 
Methods inherited from class org.media.mn8.Concept
areThereMoreElemenents, cloneConcept, extendsConcept, getAllInheritedConcepts, getAttributeValue, getConceptAttribute, getConceptAttribute, getConceptAttributeField, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptInstance, getConceptLabel, getConceptMethod, getConceptMethods, getConceptNamed, getConceptOperators, getConceptsAtPath, getConceptsAtPath, getConceptType, getErrorHandler, getInheritedConcepts, getMeAllElements, getResourceURI, hasConceptAttribute, hasConceptAttribute, hasConceptElement, hasConceptElement, hasConceptMethod, hasPath, hasPath, isHidden, loadContent, printFields, printFields, searchDeeperForPath, searchSubElements, setConceptLabel, setErrorHandler, setHidden, setResourceURI, setShowEmpty, showEmpty, subAttributeGetConcept, subAttributeHasPath, subElementGetConcepts, subElementHasPath
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

response

public ElementConcept response
Constructor Detail

JabberClientConcept

public JabberClientConcept()
The default constructor

Method Detail

create

public JabberClientConcept create(StringConcept host,
                                  IntegerConcept port)
Method to set up the jabber server host and port

Parameters:
host - The name of the jabber server to connect to
port - The port of the jabber server to connect to

login

public void login(StringConcept user,
                  StringConcept pwd)
Method to log into Jabber server. This method established connection to jabber server.

Parameters:
user - The username to log into jabber server with
pwd - The password to log into jabber server with

send

public void send(StringConcept to,
                 StringConcept message,
                 StringConcept html)
Method to send to specified user the specified message

Parameters:
to - The user to send the message to
message - The text message to send
html - The html message to send

send

public void send(StringConcept to,
                 StringConcept message)
Method to send to specified user the specified message

Parameters:
to - The user to send the message to
message - The message to send

addHandler

public void addHandler(Concept concept,
                       StringConcept methodName)
The handler method

Parameters:
concept - The invoked method concept
methodName - The handler method name (not a signature, it's will be formed here)

getConceptDefinition

public ConceptDefinition getConceptDefinition()
Return the JabberConceptDefinition object

Overrides:
getConceptDefinition in class JavaConcept

clone

public Object clone()
Clone this object

Overrides:
clone in class JavaConcept

connectToJabberServer

public void connectToJabberServer()
Method to connect to the jabber server


beginConversation

public void beginConversation()
Method to being the conversation whit the

Specified by:
beginConversation in interface JabberListener

blockArrived

public void blockArrived(JabberDataBlock data)
Method to respond to the arrival of Jabber data block

Specified by:
blockArrived in interface JabberListener
Parameters:
data - The data block comming form the server

connectionTerminated

public void connectionTerminated(Exception e)
Method to handle the termination of a connection

Specified by:
connectionTerminated in interface JabberListener
Parameters:
e - The exception that caused the connection to be terminated


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