Class SOAP::Header::SimpleHandler
In: lib/soap/header/simplehandler.rb
Parent: SOAP::Header::Handler

Methods

Public Class methods

[Source]

    # File lib/soap/header/simplehandler.rb, line 18
18:   def initialize(elename)
19:     super(elename)
20:   end

Public Instance methods

[Source]

    # File lib/soap/header/simplehandler.rb, line 36
36:   def on_inbound(header, mustunderstand)
37:     h = header.respond_to?(:to_obj) ? header.to_obj : header.data
38:     on_simple_inbound(h, mustunderstand)
39:   end

[Source]

    # File lib/soap/header/simplehandler.rb, line 31
31:   def on_outbound
32:     h = on_simple_outbound
33:     h ? SOAPElement.from_obj(h, elename.namespace) : nil
34:   end

Given header is a Hash, String or nil.

[Source]

    # File lib/soap/header/simplehandler.rb, line 28
28:   def on_simple_inbound(header, mustunderstand)
29:   end

Should return a Hash, String or nil.

[Source]

    # File lib/soap/header/simplehandler.rb, line 23
23:   def on_simple_outbound
24:     nil
25:   end

[Validate]