Class SOAP::Header::Handler
In: soap/header/handler.rb
Parent: Object

Methods

Attributes

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

Public Class methods

[Source]

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

Public Instance methods

Given header is a SOAPHeaderItem or nil.

[Source]

# File soap/header/handler.rb, line 33
  def on_inbound(header, mustunderstand = false)
    # do something.
  end

[Source]

# File soap/header/handler.rb, line 50
  def on_inbound_headeritem(header)
    on_inbound(header.element, header.mustunderstand)
  end

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

[Source]

# File soap/header/handler.rb, line 28
  def on_outbound
    nil
  end

[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

[Validate]

ruby-doc.org is hosted and maintained by James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, Arizona. The site was created in 2002 as part of the Ruby Documentation Project to promote the Ruby language and to help other Ruby hackers.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.