Parent

Files

Class Index [+]

Quicksearch

SOAP::Header::Handler

Attributes

elename[R]
mustunderstand[RW]
encodingstyle[R]
target_actor[R]

Public Class Methods

new(elename) click to toggle source
    # File lib/soap/header/handler.rb, line 22
22:   def initialize(elename)
23:     @elename = elename
24:     @mustunderstand = false
25:     @encodingstyle = nil
26:     @target_actor = nil
27:   end

Public Instance Methods

on_inbound(header, mustunderstand = false) click to toggle source

Given header is a SOAPHeaderItem or nil.

    # File lib/soap/header/handler.rb, line 35
35:   def on_inbound(header, mustunderstand = false)
36:     # do something.
37:   end
on_inbound_headeritem(header, item) click to toggle source
    # File lib/soap/header/handler.rb, line 54
54:   def on_inbound_headeritem(header, item)
55:     on_inbound(item.element, item.mustunderstand)
56:   end
on_outbound() click to toggle source

Should return a SOAP/OM, a SOAPHeaderItem or nil.

    # File lib/soap/header/handler.rb, line 30
30:   def on_outbound
31:     nil
32:   end
on_outbound_headeritem(header) click to toggle source
    # File lib/soap/header/handler.rb, line 39
39:   def on_outbound_headeritem(header)
40:     arity = self.method(:on_outbound).arity
41:     item = (arity == 0) ? on_outbound : on_outbound(header)
42:     if item.nil?
43:       nil
44:     elsif item.is_a?(::SOAP::SOAPHeaderItem)
45:       item.elename = @elename
46:       item
47:     else
48:       item.elename = @elename
49:       ::SOAP::SOAPHeaderItem.new(item, @mustunderstand, @encodingstyle,
50:         @target_actor)
51:     end
52:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.