# File lib/activemessaging/adapters/asqs.rb, line 418 def each_node(xp) REXML::XPath.each(doc.root, xp) {|n| yield n} end
# File lib/activemessaging/adapters/asqs.rb, line 398 def errors return "HTTP Error: #{http_response.code} : #{http_response.message}" unless http_response.kind_of?(Net::HTTPSuccess) msg = nil each_node('//Error') { |n| msg ||= "" c = n.elements['Code'].text m = n.elements['Message'].text msg << ", " if msg != "" msg << "#{c} : #{m}" } return msg end
# File lib/activemessaging/adapters/asqs.rb, line 394 def errors? (not http_response.kind_of?(Net::HTTPSuccess)) or (message_type == "ErrorResponse") end
# File lib/activemessaging/adapters/asqs.rb, line 413 def get_text(xpath,default='') e = REXML::XPath.first( doc, xpath) e.nil? ? default : e.text end
Generated with the Darkfish Rdoc Generator 2.