In Files

  • soap/header/handler.rb

Class/Module Index [+]

Quicksearch

SOAP::Header::Handler

Attributes

elename[R]
encodingstyle[R]
mustunderstand[R]

Public Class Methods

new(elename) click to toggle source
 
               # File soap/header/handler.rb, line 21
def initialize(elename)
  @elename = elename
  @mustunderstand = false
  @encodingstyle = nil
end
            

Public Instance Methods

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

Given header is a SOAPHeaderItem or nil.

 
               # File soap/header/handler.rb, line 33
def on_inbound(header, mustunderstand = false)
  # do something.
end
            
on_inbound_headeritem(header) click to toggle source
 
               # File soap/header/handler.rb, line 50
def on_inbound_headeritem(header)
  on_inbound(header.element, header.mustunderstand)
end
            
on_outbound() click to toggle source

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

 
               # File soap/header/handler.rb, line 28
def on_outbound
  nil
end
            
on_outbound_headeritem() click to toggle source
 
               # File soap/header/handler.rb, line 37
def on_outbound_headeritem
  item = on_outbound
  if item.nil?
    nil
  elsif item.is_a?(::SOAP::SOAPHeaderItem)
    item.elename = @elename
    item
  else
    item.elename = @elename
    ::SOAP::SOAPHeaderItem.new(item, @mustunderstand, @encodingstyle)
  end
end