Home
last modified time | relevance | path

Searched refs:stanza (Results 1 – 25 of 40) sorted by relevance

12

/external/chromium/net/tools/testserver/
Dxmppserver.py149 stanza = ParseXml(xml_text)
150 self._delegate.FeedStanza(stanza)
152 stanza.unlink()
255 def FeedStanza(self, stanza): argument
263 def ExpectStanza(stanza, name): argument
264 if stanza.tagName != name:
265 raise UnexpectedXml(stanza)
267 def ExpectIq(stanza, type, name): argument
268 ExpectStanza(stanza, 'iq')
269 if (stanza.getAttribute('type') != type or
[all …]
/external/chromium/third_party/libjingle/source/talk/examples/call/
Dpresencepushtask.cc57 bool PresencePushTask::HandleStanza(const XmlElement * stanza) { in HandleStanza() argument
58 if (stanza->Name() != QN_PRESENCE) in HandleStanza()
60 QueueStanza(stanza); in HandleStanza()
70 const XmlElement * stanza = NextStanza(); in ProcessStart() local
71 if (stanza == NULL) in ProcessStart()
74 Jid from(stanza->Attr(QN_FROM)); in ProcessStart()
78 HandlePresence(from, stanza); in ProcessStart()
80 HandleMucPresence(elem->second, from, stanza); in ProcessStart()
87 const XmlElement* stanza) { in HandlePresence() argument
88 if (stanza->Attr(QN_TYPE) == STR_ERROR) in HandlePresence()
[all …]
Ddiscoitemsquerytask.cc64 const XmlElement* stanza = NextStanza(); in ProcessResponse() local
65 if (stanza == NULL) in ProcessResponse()
69 if (stanza->Attr(QN_TYPE) != STR_ERROR) { in ProcessResponse()
70 const XmlElement* query = stanza->FirstNamed(QN_DISCO_ITEMS_QUERY); in ProcessResponse()
78 SignalDiscoItemsError(to_, stanza->FirstNamed(QN_ERROR)); in ProcessResponse()
89 bool DiscoItemsQueryTask::HandleStanza(const XmlElement* stanza) { in HandleStanza() argument
90 if (!MatchResponseIq(stanza, to_, task_id())) in HandleStanza()
92 QueueStanza(stanza); in HandleStanza()
Dpresencepushtask.h54 virtual bool HandleStanza(const XmlElement * stanza);
55 void HandlePresence(const Jid& from, const XmlElement * stanza);
57 const Jid& from, const XmlElement * stanza);
58 static void FillStatus(const Jid& from, const XmlElement * stanza,
60 static void FillMucStatus(const Jid& from, const XmlElement * stanza,
Dmucinviterecvtask.cc75 MucInviteRecvTask::HandleStanza(const XmlElement* stanza) { in HandleStanza() argument
80 if (stanza->Name() != QN_MESSAGE) return false; in HandleStanza()
81 xstanza = stanza->FirstNamed(QN_MUC_USER_X); in HandleStanza()
113 SignalInviteReceived(Jid(invite->Attr(QN_FROM)), Jid(stanza->Attr(QN_FROM)), in HandleStanza()
Dmucinvitesendtask.cc53 const XmlElement* stanza = NextStanza(); in ProcessStart() local
54 if (stanza == NULL) in ProcessStart()
57 if (SendStanza(stanza) != XMPP_RETURN_OK) in ProcessStart()
Dfriendinvitesendtask.cc66 const XmlElement* stanza = NextStanza(); in ProcessStart() local
67 if (stanza == NULL) in ProcessStart()
70 if (SendStanza(stanza) != XMPP_RETURN_OK) in ProcessStart()
Dpresenceouttask.cc71 const XmlElement * stanza = NextStanza(); in ProcessStart() local
72 if (stanza == NULL) in ProcessStart()
75 if (SendStanza(stanza) != XMPP_RETURN_OK) in ProcessStart()
/external/smack/src/org/jivesoftware/smack/sasl/
DSASLMechanism.java207 StringBuilder stanza = new StringBuilder(); in toXML() local
208 stanza.append("<auth mechanism=\"").append(name); in toXML()
209 stanza.append("\" xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">"); in toXML()
212 stanza.append(authenticationText); in toXML()
214 stanza.append("</auth>"); in toXML()
215 return stanza.toString(); in toXML()
230 StringBuilder stanza = new StringBuilder(); in toXML() local
231 stanza.append("<challenge xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">"); in toXML()
234 stanza.append(data); in toXML()
236 stanza.append("</challenge>"); in toXML()
[all …]
DSASLFacebookConnect.java51 final StringBuilder stanza = new StringBuilder(); in authenticate() local
52 stanza.append("<auth mechanism=\"").append(getName()); in authenticate()
53 stanza.append("\" xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">"); in authenticate()
54 stanza.append("</auth>"); in authenticate()
61 return stanza.toString(); in authenticate()
106 final StringBuilder stanza = new StringBuilder(); in challengeReceived() local
150 stanza.append("<response xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">"); in challengeReceived()
151 stanza.append(authenticationText); in challengeReceived()
152 stanza.append("</response>"); in challengeReceived()
159 return stanza.toString(); in challengeReceived()
/external/chromium/chrome/browser/sync/notifier/
Dcache_invalidation_packet_handler.cc54 const buzz::XmlElement* stanza = NextStanza(); in ProcessResponse() local
55 if (stanza == NULL) { in ProcessResponse()
61 if (GetCacheInvalidationIqPacketData(stanza, &data)) { in ProcessResponse()
68 scoped_ptr<buzz::XmlElement> response_stanza(MakeIqResult(stanza)); in ProcessResponse()
73 virtual bool HandleStanza(const buzz::XmlElement* stanza) { in HandleStanza() argument
75 << notifier::XmlElementToString(*stanza); in HandleStanza()
76 if (IsValidCacheInvalidationIqPacket(stanza)) { in HandleStanza()
78 QueueStanza(stanza); in HandleStanza()
86 bool IsValidCacheInvalidationIqPacket(const buzz::XmlElement* stanza) { in IsValidCacheInvalidationIqPacket() argument
89 return MatchRequestIq(stanza, buzz::STR_SET, kQnData); in IsValidCacheInvalidationIqPacket()
[all …]
/external/chromium/third_party/libjingle/source/talk/p2p/client/
Dsessionsendtask.h58 void Send(const buzz::XmlElement* stanza) { in Send() argument
63 ASSERT(stanza->Name() == buzz::QN_IQ); in Send()
64 ASSERT(stanza->HasAttr(buzz::QN_TYPE)); in Send()
65 if (stanza->Attr(buzz::QN_TYPE) == "set") { in Send()
66 ASSERT(!stanza->HasAttr(buzz::QN_ID)); in Send()
68 ASSERT((stanza->Attr(buzz::QN_TYPE) == "result") || in Send()
69 (stanza->Attr(buzz::QN_TYPE) == "error")); in Send()
70 ASSERT(stanza->HasAttr(buzz::QN_ID)); in Send()
73 stanza_.reset(new buzz::XmlElement(*stanza)); in Send()
117 virtual bool HandleStanza(const buzz::XmlElement *stanza) { in HandleStanza() argument
[all …]
Dsessionmanagertask.h60 const buzz::XmlElement *stanza = NextStanza(); in ProcessStart() local
61 if (stanza == NULL) in ProcessStart()
63 session_manager_->OnIncomingMessage(stanza); in ProcessStart()
68 virtual bool HandleStanza(const buzz::XmlElement *stanza) { in HandleStanza() argument
69 if (!session_manager_->IsSessionMessage(stanza)) in HandleStanza()
74 QueueStanza(stanza); in HandleStanza()
82 const buzz::XmlElement* stanza) { in OnOutgoingMessage() argument
85 sender->Send(stanza); in OnOutgoingMessage()
/external/chromium/third_party/libjingle/source/talk/xmpp/
Dxmpptask.cc65 XmppReturnStatus XmppTask::SendStanza(const XmlElement* stanza) { in SendStanza() argument
68 return client_->SendStanza(stanza); in SendStanza()
88 void XmppTask::QueueStanza(const XmlElement* stanza) { in QueueStanza() argument
94 stanza_queue_.push_back(new XmlElement(*stanza)); in QueueStanza()
131 bool XmppTask::MatchResponseIq(const XmlElement* stanza, in MatchResponseIq() argument
134 if (stanza->Name() != QN_IQ) in MatchResponseIq()
137 if (stanza->Attr(QN_ID) != id) in MatchResponseIq()
140 Jid from(stanza->Attr(QN_FROM)); in MatchResponseIq()
154 bool XmppTask::MatchRequestIq(const XmlElement* stanza, in MatchRequestIq() argument
157 if (stanza->Name() != QN_IQ) in MatchRequestIq()
[all …]
Dxmpptask.h87 XmppReturnStatus SendStanza(const XmlElement* stanza);
94 virtual bool HandleStanza(const XmlElement* stanza) { return false; } in HandleStanza() argument
98 virtual void QueueStanza(const XmlElement* stanza);
101 bool MatchResponseIq(const XmlElement* stanza, const Jid& to,
104 static bool MatchRequestIq(const XmlElement* stanza, const std::string& type,
Dxmppengineimpl.cc321 XmppEngineImpl::IncomingStanza(const XmlElement * stanza) { in IncomingStanza() argument
325 if (stanza->Name() == QN_STREAM_ERROR) { in IncomingStanza()
327 SignalStreamError(stanza); in IncomingStanza()
330 login_task_->IncomingStanza(stanza, false); in IncomingStanza()
333 } else if (HandleIqResponse(stanza)) { in IncomingStanza()
338 (*stanza_handlers_[HL_PEEK])[i]->HandleStanza(stanza); in IncomingStanza()
344 if ((*stanza_handlers_[level])[i]->HandleStanza(stanza)) in IncomingStanza()
352 std::string type = stanza->Attr(QN_TYPE); in IncomingStanza()
353 if (stanza->Name() == QN_IQ && in IncomingStanza()
355 SendStanzaError(stanza, XSE_FEATURE_NOT_IMPLEMENTED, STR_EMPTY); in IncomingStanza()
/external/chromium/third_party/libjingle/source/talk/p2p/base/
Dsessionmanager.cc130 bool SessionManager::IsSessionMessage(const buzz::XmlElement* stanza) { in IsSessionMessage() argument
131 return cricket::IsSessionMessage(stanza); in IsSessionMessage()
147 void SessionManager::OnIncomingMessage(const buzz::XmlElement* stanza) { in OnIncomingMessage() argument
151 if (!ParseSessionMessage(stanza, &msg, &error)) { in OnIncomingMessage()
152 SendErrorMessage(stanza, buzz::QN_STANZA_BAD_REQUEST, "modify", in OnIncomingMessage()
163 SendErrorMessage(stanza, buzz::QN_STANZA_BAD_REQUEST, "modify", in OnIncomingMessage()
171 SendErrorMessage(stanza, buzz::QN_STANZA_BAD_REQUEST, "modify", in OnIncomingMessage()
177 SendErrorMessage(stanza, buzz::QN_STANZA_BAD_REQUEST, "modify", in OnIncomingMessage()
218 void SessionManager::SendErrorMessage(const buzz::XmlElement* stanza, in SendErrorMessage() argument
224 CreateErrorMessage(stanza, name, type, text, extra_info)); in SendErrorMessage()
[all …]
Dsessionmanager.h93 bool IsSessionMessage(const buzz::XmlElement* stanza);
100 void OnIncomingMessage(const buzz::XmlElement* stanza);
155 void SendErrorMessage(const buzz::XmlElement* stanza,
164 const buzz::XmlElement* stanza,
174 void OnOutgoingMessage(Session* session, const buzz::XmlElement* stanza);
178 const buzz::XmlElement* stanza,
Dsessionmessages.cc128 bool IsJingleMessage(const buzz::XmlElement* stanza) { in IsJingleMessage() argument
129 const buzz::XmlElement* jingle = stanza->FirstNamed(QN_JINGLE); in IsJingleMessage()
142 bool IsGingleMessage(const buzz::XmlElement* stanza) { in IsGingleMessage() argument
143 const buzz::XmlElement* session = stanza->FirstNamed(QN_GINGLE_SESSION); in IsGingleMessage()
152 bool IsSessionMessage(const buzz::XmlElement* stanza) { in IsSessionMessage() argument
153 return (stanza->Name() == buzz::QN_IQ && in IsSessionMessage()
154 stanza->Attr(buzz::QN_TYPE) == buzz::STR_SET && in IsSessionMessage()
155 (IsJingleMessage(stanza) || in IsSessionMessage()
156 IsGingleMessage(stanza))); in IsSessionMessage()
207 bool ParseSessionMessage(const buzz::XmlElement* stanza, in ParseSessionMessage() argument
[all …]
Dsessionmessages.h80 SessionMessage() : action_elem(NULL), stanza(NULL) {} in SessionMessage()
85 action_elem(NULL), stanza(NULL) {} in SessionMessage()
99 const buzz::XmlElement* stanza; member
203 bool IsSessionMessage(const buzz::XmlElement* stanza);
204 bool ParseSessionMessage(const buzz::XmlElement* stanza,
214 buzz::XmlElement* stanza);
268 bool FindSessionRedirect(const buzz::XmlElement* stanza,
Dsession.cc596 const buzz::XmlElement* stanza, in OnTransportSendError() argument
602 SignalErrorMessage(this, stanza, name, type, text, extra_info); in OnTransportSendError()
660 SendAcknowledgementMessage(msg.stanza); in OnIncomingMessage()
662 SignalErrorMessage(this, msg.stanza, error.type, in OnIncomingMessage()
1027 talk_base::scoped_ptr<buzz::XmlElement> stanza( in SendMessage() local
1032 WriteSessionMessage(msg, action_elems, stanza.get()); in SendMessage()
1034 SignalOutgoingMessage(this, stanza.get()); in SendMessage()
1041 talk_base::scoped_ptr<buzz::XmlElement> stanza( in SendMessage() local
1043 if (!WriteActionMessage(type, action, stanza.get(), error)) in SendMessage()
1046 SignalOutgoingMessage(this, stanza.get()); in SendMessage()
[all …]
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/packet/
DOpen.java34 private final StanzaType stanza; field in Open
49 public Open(String sessionID, int blockSize, StanzaType stanza) { in Open() argument
59 this.stanza = stanza; in Open()
103 return stanza; in getStanza()
120 buf.append(stanza.toString().toLowerCase()); in getChildElementXML()
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/provider/
DOpenIQProvider.java34 StanzaType stanza = null; in parseIQ() local
36 stanza = StanzaType.IQ; in parseIQ()
39 stanza = StanzaType.valueOf(stanzaValue.toUpperCase()); in parseIQ()
42 return new Open(sessionID, blockSize, stanza); in parseIQ()
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/
DInBandBytestreamManager.java168 private StanzaType stanza = StanzaType.IQ; field in InBandBytestreamManager
364 return stanza; in getStanza()
375 public void setStanza(StanzaType stanza) { in setStanza() argument
376 this.stanza = stanza; in setStanza()
412 Open byteStreamRequest = new Open(sessionID, this.defaultBlockSize, this.stanza); in establishSession()
/external/chromium/third_party/libjingle/source/talk/examples/login/
Dxmpppump.cc74 buzz::XmppReturnStatus XmppPump::SendStanza(const buzz::XmlElement *stanza) { in SendStanza() argument
76 return client_->SendStanza(stanza); in SendStanza()

12