Searched refs:stanza (Results 1 - 25 of 132) sorted by relevance

123456

/external/chromium_org/third_party/libjingle/source/talk/xmpp/
H A Dreceivetask.cc33 bool ReceiveTask::HandleStanza(const XmlElement* stanza) { argument
34 if (WantsStanza(stanza)) {
35 QueueStanza(stanza);
43 const XmlElement* stanza = NextStanza(); local
44 if (stanza == NULL)
47 ReceiveStanza(stanza);
H A Dreceivetask.h36 // indicate that a stanza should be received and ReceiveStanza to
48 virtual bool HandleStanza(const XmlElement* stanza);
50 // Return true if the stanza should be received.
51 virtual bool WantsStanza(const XmlElement* stanza) = 0;
52 // Process the received stanza.
53 virtual void ReceiveStanza(const XmlElement* stanza) = 0;
H A Diqtask.cc54 bool IqTask::HandleStanza(const buzz::XmlElement* stanza) { argument
55 if (!MatchResponseIq(stanza, to_, task_id()))
58 if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_RESULT &&
59 stanza->Attr(buzz::QN_TYPE) != buzz::STR_ERROR) {
63 QueueStanza(stanza);
68 const buzz::XmlElement* stanza = NextStanza(); local
69 if (stanza == NULL)
72 bool success = (stanza->Attr(buzz::QN_TYPE) == buzz::STR_RESULT);
74 HandleResult(stanza);
76 SignalError(this, stanza
[all...]
H A Dpingtask.cc25 bool PingTask::HandleStanza(const buzz::XmlElement* stanza) { argument
26 if (!MatchResponseIq(stanza, Jid(STR_EMPTY), task_id())) {
30 if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_RESULT &&
31 stanza->Attr(buzz::QN_TYPE) != buzz::STR_ERROR) {
35 QueueStanza(stanza);
46 const buzz::XmlElement* stanza = NextStanza(); local
47 if (stanza != NULL) {
62 talk_base::scoped_ptr<buzz::XmlElement> stanza(
64 stanza->AddElement(new buzz::XmlElement(QN_PING));
65 SendStanza(stanza
[all...]
H A Dpresencereceivetask.h58 virtual bool HandleStanza(const XmlElement * stanza);
63 void HandlePresence(const Jid& from, const XmlElement * stanza);
65 // Extracts presence information for the presence stanza sent form the
67 static void DecodeStatus(const Jid& from, const XmlElement * stanza,
H A Dpresencereceivetask.cc49 const XmlElement * stanza = NextStanza(); local
50 if (stanza == NULL) {
54 Jid from(stanza->Attr(QN_FROM));
55 HandlePresence(from, stanza);
60 bool PresenceReceiveTask::HandleStanza(const XmlElement * stanza) { argument
62 if (stanza->Name() != QN_PRESENCE) {
67 QueueStanza(stanza);
73 const XmlElement* stanza) {
74 if (stanza->Attr(QN_TYPE) == STR_ERROR) {
79 DecodeStatus(from, stanza,
72 HandlePresence(const Jid& from, const XmlElement* stanza) argument
83 DecodeStatus(const Jid& from, const XmlElement* stanza, PresenceStatus* presence_status) argument
[all...]
H A Dmucroomuniquehangoutidtask.cc15 // Construct a stanza to request a unique room id. eg:
30 void MucRoomUniqueHangoutIdTask::HandleResult(const XmlElement* stanza) { argument
32 const XmlElement* unique_elem = stanza->FirstNamed(QN_MUC_UNIQUE_QUERY);
35 SignalError(this, stanza);
H A Djingleinfotask.cc59 virtual bool HandleStanza(const XmlElement * stanza) { argument
60 if (!MatchResponseIq(stanza, Jid(), task_id()))
63 if (stanza->Attr(QN_TYPE) != STR_RESULT)
66 // Queue the stanza with the parent so these don't get handled out of order
68 parent->QueueStanza(stanza);
86 JingleInfoTask::HandleStanza(const XmlElement * stanza) { argument
87 if (!MatchRequestIq(stanza, "set", QN_JINGLE_INFO_QUERY))
91 Jid from(stanza->Attr(QN_FROM));
97 QueueStanza(stanza);
106 const XmlElement * stanza local
[all...]
H A Dfakexmppclient.h72 virtual XmppReturnStatus SendStanza(const XmlElement* stanza) { argument
73 sent_stanzas_.push_back(stanza);
103 // Takes ownership of stanza.
104 void HandleStanza(XmlElement* stanza) { argument
107 if ((*task)->HandleStanza(stanza)) {
108 delete stanza;
112 delete stanza;
/external/chromium_org/jingle/notifier/listener/
H A Dsend_ping_task.cc33 scoped_ptr<buzz::XmlElement> stanza(MakePingStanza(ping_task_id_));
34 DVLOG(1) << "Sending ping stanza " << XmlElementToString(*stanza);
35 if (SendStanza(stanza.get()) != buzz::XMPP_RETURN_OK) {
36 DLOG(WARNING) << "Could not send stanza " << XmlElementToString(*stanza);
43 const buzz::XmlElement* stanza = NextStanza(); local
44 if (stanza == NULL) {
48 DVLOG(1) << "Received stanza " << XmlElementToString(*stanza);
61 HandleStanza(const buzz::XmlElement* stanza) argument
73 buzz::XmlElement* stanza = MakeIq(buzz::STR_GET, local
[all...]
H A Dpush_notifications_listen_task.cc39 const buzz::XmlElement* stanza = NextStanza(); local
40 if (stanza == NULL) {
44 DVLOG(1) << "Received stanza " << XmlElementToString(*stanza);
50 // Extract the service URL and service-specific data from the stanza.
52 // The response stanza has the following format.
64 const buzz::XmlElement* push_element = stanza->FirstNamed(kQnPush);
81 LOG(WARNING) << "No push element found in stanza "
82 << XmlElementToString(*stanza);
87 bool PushNotificationsListenTask::HandleStanza(const buzz::XmlElement* stanza) { argument
95 IsValidNotification( const buzz::XmlElement* stanza) argument
[all...]
H A Dpush_notifications_subscribe_task.cc34 const buzz::XmlElement* stanza) {
35 if (!MatchResponseIq(stanza, GetClient()->jid().BareJid(), task_id()))
37 QueueStanza(stanza);
46 DVLOG(1) << "Push notifications: Subscription stanza: "
59 const buzz::XmlElement* stanza = NextStanza(); local
60 if (stanza == NULL) {
64 << XmlElementToString(*stanza);
66 if (stanza->HasAttr(buzz::QN_TYPE) &&
67 stanza->Attr(buzz::QN_TYPE) == buzz::STR_RESULT) {
85 // Create the subscription stanza usin
33 HandleStanza( const buzz::XmlElement* stanza) argument
[all...]
/external/chromium_org/remoting/jingle_glue/
H A Diq_sender.cc26 scoped_ptr<buzz::XmlElement> stanza(new buzz::XmlElement(buzz::QN_IQ));
27 stanza->AddAttr(buzz::QN_TYPE, type);
29 stanza->AddAttr(buzz::QN_TO, addressee);
30 stanza->AddElement(iq_body.release());
31 return stanza.Pass();
43 scoped_ptr<IqRequest> IqSender::SendIq(scoped_ptr<buzz::XmlElement> stanza, argument
45 std::string addressee = stanza->Attr(buzz::QN_TO);
47 stanza->AddAttr(buzz::QN_ID, id);
48 if (!signal_strategy_->SendStanza(stanza.Pass())) {
80 bool IqSender::OnSignalStrategyIncomingStanza(const buzz::XmlElement* stanza) { argument
140 CallCallback(const buzz::XmlElement* stanza) argument
152 OnResponse(const buzz::XmlElement* stanza) argument
161 DeliverResponse(scoped_ptr<buzz::XmlElement> stanza) argument
[all...]
H A Dmock_objects.h29 MOCK_METHOD1(SendStanzaPtr, bool(buzz::XmlElement* stanza));
30 virtual bool SendStanza(scoped_ptr<buzz::XmlElement> stanza) OVERRIDE {
31 return SendStanzaPtr(stanza.release());
H A Dfake_signal_strategy.cc76 bool FakeSignalStrategy::SendStanza(scoped_ptr<buzz::XmlElement> stanza) { argument
79 stanza->SetAttr(buzz::QN_FROM, jid_);
82 peer_->OnIncomingMessage(stanza.Pass());
95 scoped_ptr<buzz::XmlElement> stanza) {
96 pending_messages_.push(stanza.get());
97 received_messages_.push_back(stanza.release());
105 buzz::XmlElement* stanza = pending_messages_.front(); local
106 const std::string& to_field = stanza->Attr(buzz::QN_TO);
108 LOG(WARNING) << "Dropping stanza that is addressed to " << to_field
110 << ". Message content: " << stanza
94 OnIncomingMessage( scoped_ptr<buzz::XmlElement> stanza) argument
[all...]
/external/chromium_org/third_party/libjingle/source/talk/p2p/client/
H A Dsessionmanagertask.h61 const buzz::XmlElement *stanza = NextStanza(); local
62 if (stanza == NULL)
64 session_manager_->OnIncomingMessage(stanza);
69 virtual bool HandleStanza(const buzz::XmlElement *stanza) { argument
70 if (!session_manager_->IsSessionMessage(stanza))
73 //if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_SET)
75 QueueStanza(stanza);
81 const buzz::XmlElement* stanza) {
84 sender->Send(stanza);
80 OnOutgoingMessage(SessionManager* manager, const buzz::XmlElement* stanza) argument
H A Dsessionsendtask.h40 // The job of this task is to send an IQ stanza out (after stamping it with
61 void Send(const buzz::XmlElement* stanza) { argument
66 ASSERT(stanza->Name() == buzz::QN_IQ);
67 ASSERT(stanza->HasAttr(buzz::QN_TYPE));
68 if (stanza->Attr(buzz::QN_TYPE) == "set") {
69 ASSERT(!stanza->HasAttr(buzz::QN_ID));
71 ASSERT((stanza->Attr(buzz::QN_TYPE) == "result") ||
72 (stanza->Attr(buzz::QN_TYPE) == "error"));
73 ASSERT(stanza->HasAttr(buzz::QN_ID));
76 stanza_.reset(new buzz::XmlElement(*stanza));
126 HandleStanza(const buzz::XmlElement *stanza) argument
[all...]
/external/chromium_org/third_party/libjingle/source/talk/examples/call/
H A 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,
H A Dpresencepushtask.cc57 bool PresencePushTask::HandleStanza(const XmlElement * stanza) { argument
58 if (stanza->Name() != QN_PRESENCE)
60 QueueStanza(stanza);
70 const XmlElement * stanza = NextStanza(); local
71 if (stanza == NULL)
74 Jid from(stanza->Attr(QN_FROM));
78 HandlePresence(from, stanza);
80 HandleMucPresence(elem->second, from, stanza);
87 const XmlElement* stanza) {
88 if (stanza
86 HandlePresence(const Jid& from, const XmlElement* stanza) argument
96 HandleMucPresence(buzz::Muc* muc, const Jid& from, const XmlElement* stanza) argument
129 FillStatus(const Jid& from, const XmlElement* stanza, PresenceStatus* s) argument
217 FillMucStatus(const Jid& from, const XmlElement* stanza, MucPresenceStatus* s) argument
[all...]
/external/chromium_org/sync/tools/testserver/
H A Dxmppserver.py92 def FeedStanza(self, stanza):
94 print stanza.toprettyxml()
148 stanza = ParseXml(xml_text)
149 self._delegate.FeedStanza(stanza)
150 # Needed because stanza may have cycles.
151 stanza.unlink()
260 def FeedStanza(self, stanza):
261 """Inspects the given stanza and changes the handshake state if needed.
263 Called when a stanza is received from the client. Inspects the
264 stanza t
[all...]
/external/chromium_org/remoting/host/
H A Dhost_change_notification_listener.cc47 const buzz::XmlElement* stanza) {
48 if (stanza->Name() != buzz::QN_IQ || stanza->Attr(buzz::QN_TYPE) != "set")
52 stanza->FirstNamed(QName(kChromotingXmlNamespace, "host-changed"));
58 const std::string& from = stanza->Attr(buzz::QN_FROM);
59 const std::string& to = stanza->Attr(buzz::QN_TO);
73 LOG(ERROR) << "Invalid host-changed message received: " << stanza->Str();
46 OnSignalStrategyIncomingStanza( const buzz::XmlElement* stanza) argument
H A Dhost_change_notification_listener_unittest.cc71 scoped_ptr<XmlElement> stanza(new XmlElement(buzz::QN_IQ));
72 stanza->AddAttr(QName(std::string(), "type"), "set");
78 stanza->AddElement(host_changed);
79 stanza->AddAttr(buzz::QN_FROM, botJid);
80 stanza->AddAttr(buzz::QN_TO, kTestJid);
81 return stanza.Pass();
94 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local
97 stanza.get());
106 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local
109 stanza
120 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local
132 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local
144 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local
[all...]
/external/smack/src/org/jivesoftware/smack/sasl/
H A DSASLMechanism.java48 * <li>{@link #authenticate(String, String, String)} -- Initiate authentication stanza using the
50 * <li>{@link #authenticate(String, String, CallbackHandler)} -- Initiate authentication stanza
71 * Builds and sends the <tt>auth</tt> stanza to the server. Note that this method of
97 * Builds and sends the <tt>auth</tt> stanza to the server. The callback handler will handle
130 * The server is challenging the SASL mechanism for the stanza he just sent. Send a
207 StringBuilder stanza = new StringBuilder();
208 stanza.append("<auth mechanism=\"").append(name);
209 stanza.append("\" xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
212 stanza.append(authenticationText);
214 stanza
[all...]
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/provider/
H A DOpenIQProvider.java33 String stanzaValue = parser.getAttributeValue("", "stanza");
34 StanzaType stanza = null;
36 stanza = StanzaType.IQ;
39 stanza = StanzaType.valueOf(stanzaValue.toUpperCase());
42 return new Open(sessionID, blockSize, stanza);
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/packet/
H A DOpen.java33 /* stanza type used to encapsulate the data */
34 private final StanzaType stanza; field in class:Open
47 * @param stanza stanza type used to encapsulate the data
49 public Open(String sessionID, int blockSize, StanzaType stanza) { argument
59 this.stanza = stanza;
98 * Returns the stanza type used to encapsulate the data.
100 * @return the stanza type used to encapsulate the data
103 return stanza;
[all...]

Completed in 424 milliseconds

123456