# File soap/header/handlerset.rb, line 27
def add(handler)
@store << handler
end
# File soap/header/handlerset.rb, line 32
def delete(handler)
@store.delete(handler)
end
# File soap/header/handlerset.rb, line 21
def dup
obj = HandlerSet.new
obj.store = @store.dup
obj
end
# File soap/header/handlerset.rb, line 36
def include?(handler)
@store.include?(handler)
end
headers: SOAPHeaderItem enumerable object
# File soap/header/handlerset.rb, line 48
def on_inbound(headers)
headers.each do |name, item|
handler = @store.find { |handler|
handler.elename == item.element.elename
}
if handler
handler.on_inbound_headeritem(item)
elsif item.mustunderstand
raise UnhandledMustUnderstandHeaderError.new(item.element.elename.to_s)
end
end
end
returns: Array of SOAPHeaderItem
# File soap/header/handlerset.rb, line 41
def on_outbound
@store.collect { |handler|
handler.on_outbound_headeritem
}.compact
end
Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please see Improve the docs, or visit Documenting-ruby.org.