Parent

Files

Class/Module Index [+]

Quicksearch

SOAP::Header::Handler

Attributes

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

Public Class Methods

new(elename) click to toggle source
# File lib/soap/header/handler.rb, line 22
def initialize(elename)
  @elename = elename
  @mustunderstand = false
  @encodingstyle = nil
  @target_actor = nil
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
def on_inbound(header, mustunderstand = false)
  # do something.
end
on_inbound_headeritem(header, item) click to toggle source
# File lib/soap/header/handler.rb, line 54
def on_inbound_headeritem(header, item)
  on_inbound(item.element, item.mustunderstand)
end
on_outbound() click to toggle source

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

# File lib/soap/header/handler.rb, line 30
def on_outbound
  nil
end
on_outbound_headeritem(header) click to toggle source
# File lib/soap/header/handler.rb, line 39
def on_outbound_headeritem(header)
  arity = self.method(:on_outbound).arity
  item = (arity == 0) ? on_outbound : on_outbound(header)
  if item.nil?
    nil
  elsif item.is_a?(::SOAP::SOAPHeaderItem)
    item.elename = @elename
    item
  else
    item.elename = @elename
    ::SOAP::SOAPHeaderItem.new(item, @mustunderstand, @encodingstyle,
      @target_actor)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.