Sha256: 37cbc24e6c9622d01fd4f467f94a76b1cbeb9553570ef85cc7d7442ac7fcbf91
Contents?: true
Size: 1.15 KB
Versions: 12
Compression:
Stored size: 1.15 KB
Contents
# Copyright 2008-2013 Red Hat, Inc, and individual contributors. # # This is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of # the License, or (at your option) any later version. # # This software is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this software; if not, write to the Free # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA # 02110-1301 USA, or see the FSF site: http://www.fsf.org. module TorqueBox module Stomp class Message def self.new(body, headers={}) message = org.projectodd.stilts.stomp::StompMessages.createStompMessage() message.content_as_string = body headers.each do |k,v| message.headers[k.to_s] = v.to_s end message end end end end
Version data entries
12 entries across 12 versions & 1 rubygems