Class: SOAP::EncodingStyle::Handler
- Inherits:
-
Object
- Object
- SOAP::EncodingStyle::Handler
show all
- Defined in:
- lib/action_web_service/soap/encodingstyle/handler.rb
Defined Under Namespace
Classes: EncodingStyleError
Constant Summary
collapse
- @@handlers =
{}
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
-
#decode_epilogue ⇒ Object
-
#decode_prologue ⇒ Object
-
#decode_tag(ns, name, attrs, parent) ⇒ Object
-
#decode_tag_end(ns, name) ⇒ Object
-
#decode_text(ns, text) ⇒ Object
-
#decode_typemap=(definedtypes) ⇒ Object
-
#encode_data(generator, ns, data, parent) ⇒ Object
-
#encode_data_end(generator, ns, data, parent) ⇒ Object
-
#encode_epilogue ⇒ Object
-
#encode_prologue ⇒ Object
-
#initialize(charset) ⇒ Handler
constructor
A new instance of Handler.
Constructor Details
#initialize(charset) ⇒ Handler
Returns a new instance of Handler.
51
52
53
54
55
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 51
def initialize(charset)
@charset = charset
@generate_explicit_type = true
@decode_typemap = nil
end
|
Instance Attribute Details
Returns the value of attribute charset.
45
46
47
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 45
def charset
@charset
end
|
#generate_explicit_type ⇒ Object
Returns the value of attribute generate_explicit_type.
46
47
48
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 46
def generate_explicit_type
@generate_explicit_type
end
|
Class Method Details
32
33
34
35
36
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 32
def each
@@handlers.each do |key, value|
yield(value)
end
end
|
.handler(uri) ⇒ Object
28
29
30
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 28
def handler(uri)
@@handlers[uri]
end
|
24
25
26
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 24
def uri
self::Namespace
end
|
Instance Method Details
#decode_epilogue ⇒ Object
94
95
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 94
def decode_epilogue
end
|
#decode_prologue ⇒ Object
91
92
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 91
def decode_prologue
end
|
#decode_tag(ns, name, attrs, parent) ⇒ Object
decode interface.
Returns SOAP/OM data.
79
80
81
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 79
def decode_tag(ns, name, attrs, parent)
raise NotImplementError.new('Method decode_tag must be defined in derived class.')
end
|
#decode_tag_end(ns, name) ⇒ Object
83
84
85
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 83
def decode_tag_end(ns, name)
raise NotImplementError.new('Method decode_tag_end must be defined in derived class.')
end
|
#decode_text(ns, text) ⇒ Object
87
88
89
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 87
def decode_text(ns, text)
raise NotImplementError.new('Method decode_text must be defined in derived class.')
end
|
#decode_typemap=(definedtypes) ⇒ Object
47
48
49
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 47
def decode_typemap=(definedtypes)
@decode_typemap = definedtypes
end
|
#encode_data(generator, ns, data, parent) ⇒ Object
encode interface.
Returns a XML instance as a string.
61
62
63
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 61
def encode_data(generator, ns, data, parent)
raise NotImplementError
end
|
#encode_data_end(generator, ns, data, parent) ⇒ Object
65
66
67
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 65
def encode_data_end(generator, ns, data, parent)
raise NotImplementError
end
|
#encode_epilogue ⇒ Object
72
73
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 72
def encode_epilogue
end
|
#encode_prologue ⇒ Object
69
70
|
# File 'lib/action_web_service/soap/encodingstyle/handler.rb', line 69
def encode_prologue
end
|