|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.media.mn8.Concept
|
+--org.media.mn8.JavaConcept
|
+--org.media.mn8.concepts.JabberClientConcept
| 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 java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public ElementConcept response
| Constructor Detail |
public JabberClientConcept()
| Method Detail |
public JabberClientConcept create(StringConcept host,
IntegerConcept port)
host - The name of the jabber server to connect toport - The port of the jabber server to connect to
public void login(StringConcept user,
StringConcept pwd)
user - The username to log into jabber server withpwd - The password to log into jabber server with
public void send(StringConcept to,
StringConcept message,
StringConcept html)
to - The user to send the message tomessage - The text message to sendhtml - The html message to send
public void send(StringConcept to,
StringConcept message)
to - The user to send the message tomessage - The message to send
public void addHandler(Concept concept,
StringConcept methodName)
concept - The invoked method conceptmethodName - The handler method name (not a signature, it's will be formed here)public ConceptDefinition getConceptDefinition()
getConceptDefinition in class JavaConceptpublic Object clone()
clone in class JavaConceptpublic void connectToJabberServer()
public void beginConversation()
beginConversation in interface JabberListenerpublic void blockArrived(JabberDataBlock data)
blockArrived in interface JabberListenerdata - The data block comming form the serverpublic void connectionTerminated(Exception e)
connectionTerminated in interface JabberListenere - The exception that caused the connection to be terminated
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||