|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.echomine.jabber.JabberMessage
com.echomine.jabber.JabberJDOMMessage
com.echomine.jabber.AbstractJabberMessage
com.echomine.jabber.JabberIQMessage
com.echomine.jabber.msg.GatewayIQMessage
public class GatewayIQMessage
Add support to query gateways and request certain information from it. This is normally used to translate a service-specific username into a JID-compliant name. For instance, the AIM username may be "Some User". The translation service might transform it into a JID that looks like "SomeUser@aim.jabber.org".
Field Summary |
---|
Fields inherited from class com.echomine.jabber.JabberIQMessage |
---|
TYPE_GET, TYPE_RESULT, TYPE_SET |
Fields inherited from class com.echomine.jabber.AbstractJabberMessage |
---|
TYPE_ERROR |
Fields inherited from class com.echomine.jabber.JabberMessage |
---|
messageID |
Constructor Summary | |
---|---|
GatewayIQMessage()
defaults to iq type get |
|
GatewayIQMessage(java.lang.String type)
this constructor is for messages with type. |
Method Summary | |
---|---|
void |
addField(java.lang.String name,
java.lang.String value)
normally used to add fields that should be sent to the server when querying for gateway info or setting the data. |
void |
addFields(java.util.HashMap fields)
this method allows you to add multiple fields at once. |
java.util.HashMap |
getFields()
this is used normally for incoming messages to retrieve the fields that are returned. |
int |
getMessageType()
the default message type is unknown. |
Methods inherited from class com.echomine.jabber.AbstractJabberMessage |
---|
getErrorMessage, getFrom, getTo, getType, isError, parse, setErrorMessage, setFrom, setTo, setType |
Methods inherited from class com.echomine.jabber.JabberJDOMMessage |
---|
encode, getDOM, getXMLOutputter, setMessageID, toString |
Methods inherited from class com.echomine.jabber.JabberMessage |
---|
getMessageID, getReplyMessage, getTimeout, getXMessage, getXMessages, interrupt, isReplyRequired, isSendXMessages, isSynchronized, replyReceived, setReplyRequired, setSendXMessages, setSynchronized, setTimeout, setXMessage, setXMessages |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GatewayIQMessage(java.lang.String type)
public GatewayIQMessage()
Method Detail |
---|
public void addField(java.lang.String name, java.lang.String value)
name
- the name of the fieldvalue
- the value that is associated with the namepublic void addFields(java.util.HashMap fields)
public java.util.HashMap getFields()
public int getMessageType()
JabberJDOMMessage
getMessageType
in class JabberIQMessage
JabberCode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |