Module: Soybean::Engine::ClassMethods
- Included in:
- Soybean::Engine
- Defined in:
- lib/soybean/engine.rb
Instance Method Summary collapse
- #add_document_operation(receiver, soapaction, name, param_def, opt = {}) ⇒ Object
- #add_headerhandler(obj) ⇒ Object (also: #add_rpc_headerhandler)
-
#add_rpc_method(obj, name, *param) ⇒ Object
(also: #add_method)
method entry interface.
- #add_rpc_method_as(obj, name, name_as, *param) ⇒ Object (also: #add_method_as)
- #add_rpc_method_with_namespace(namespace, obj, name, *param) ⇒ Object (also: #add_method_with_namespace)
- #add_rpc_method_with_namespace_as(namespace, obj, name, name_as, *param) ⇒ Object (also: #add_method_with_namespace_as)
- #add_rpc_operation(receiver, qname, soapaction, name, param_def, opt = {}) ⇒ Object
-
#add_rpc_servant(obj, namespace = self.default_namespace) ⇒ Object
(also: #add_servant)
servant entry interface.
- #endpoint ⇒ Object
- #endpoint=(regex) ⇒ Object
- #filterchain ⇒ Object
- #generate_explicit_type ⇒ Object
- #generate_explicit_type=(generate_explicit_type) ⇒ Object
- #literal_mapping_registry ⇒ Object
- #literal_mapping_registry=(literal_mapping_registry) ⇒ Object
-
#mapping_registry ⇒ Object
SOAP interface.
- #mapping_registry=(mapping_registry) ⇒ Object
- #router ⇒ Object
- #setup {|_self| ... } ⇒ Object
Instance Method Details
#add_document_operation(receiver, soapaction, name, param_def, opt = {}) ⇒ Object
110 111 112 |
# File 'lib/soybean/engine.rb', line 110 def add_document_operation(receiver, soapaction, name, param_def, opt = {}) router.add_document_operation(receiver, soapaction, name, param_def, opt) end |
#add_headerhandler(obj) ⇒ Object Also known as: add_rpc_headerhandler
67 68 69 |
# File 'lib/soybean/engine.rb', line 67 def add_headerhandler(obj) router.add_headerhandler(obj) end |
#add_rpc_method(obj, name, *param) ⇒ Object Also known as: add_method
method entry interface
79 80 81 |
# File 'lib/soybean/engine.rb', line 79 def add_rpc_method(obj, name, *param) add_rpc_method_with_namespace_as(default_namespace, obj, name, name, *param) end |
#add_rpc_method_as(obj, name, name_as, *param) ⇒ Object Also known as: add_method_as
85 86 87 |
# File 'lib/soybean/engine.rb', line 85 def add_rpc_method_as(obj, name, name_as, *param) add_rpc_method_with_namespace_as(default_namespace, obj, name, name_as, *param) end |
#add_rpc_method_with_namespace(namespace, obj, name, *param) ⇒ Object Also known as: add_method_with_namespace
91 92 93 |
# File 'lib/soybean/engine.rb', line 91 def add_rpc_method_with_namespace(namespace, obj, name, *param) add_rpc_method_with_namespace_as(namespace, obj, name, name, *param) end |
#add_rpc_method_with_namespace_as(namespace, obj, name, name_as, *param) ⇒ Object Also known as: add_method_with_namespace_as
97 98 99 100 101 102 |
# File 'lib/soybean/engine.rb', line 97 def add_rpc_method_with_namespace_as(namespace, obj, name, name_as, *param) qname = XSD::QName.new(namespace, name_as) soapaction = nil param_def = SOAPMethod.derive_rpc_param_def(obj, name, *param) router.add_rpc_operation(obj, qname, soapaction, name, param_def) end |
#add_rpc_operation(receiver, qname, soapaction, name, param_def, opt = {}) ⇒ Object
106 107 108 |
# File 'lib/soybean/engine.rb', line 106 def add_rpc_operation(receiver, qname, soapaction, name, param_def, opt = {}) router.add_rpc_operation(receiver, qname, soapaction, name, param_def, opt) end |
#add_rpc_servant(obj, namespace = self.default_namespace) ⇒ Object Also known as: add_servant
servant entry interface
61 62 63 |
# File 'lib/soybean/engine.rb', line 61 def add_rpc_servant(obj, namespace = self.default_namespace) router.add_rpc_servant(obj, namespace) end |
#endpoint ⇒ Object
29 30 31 |
# File 'lib/soybean/engine.rb', line 29 def endpoint @endpoint end |
#endpoint=(regex) ⇒ Object
25 26 27 |
# File 'lib/soybean/engine.rb', line 25 def endpoint=(regex) @endpoint = regex end |
#filterchain ⇒ Object
73 74 75 |
# File 'lib/soybean/engine.rb', line 73 def filterchain router.filterchain end |
#generate_explicit_type ⇒ Object
51 52 53 |
# File 'lib/soybean/engine.rb', line 51 def generate_explicit_type router.generate_explicit_type end |
#generate_explicit_type=(generate_explicit_type) ⇒ Object
55 56 57 |
# File 'lib/soybean/engine.rb', line 55 def generate_explicit_type=(generate_explicit_type) router.generate_explicit_type = generate_explicit_type end |
#literal_mapping_registry ⇒ Object
43 44 45 |
# File 'lib/soybean/engine.rb', line 43 def literal_mapping_registry router.literal_mapping_registry end |
#literal_mapping_registry=(literal_mapping_registry) ⇒ Object
47 48 49 |
# File 'lib/soybean/engine.rb', line 47 def literal_mapping_registry=(literal_mapping_registry) router.literal_mapping_registry = literal_mapping_registry end |
#mapping_registry ⇒ Object
SOAP interface
35 36 37 |
# File 'lib/soybean/engine.rb', line 35 def mapping_registry router.mapping_registry end |
#mapping_registry=(mapping_registry) ⇒ Object
39 40 41 |
# File 'lib/soybean/engine.rb', line 39 def mapping_registry=(mapping_registry) router.mapping_registry = mapping_registry end |
#router ⇒ Object
21 22 23 |
# File 'lib/soybean/engine.rb', line 21 def router @router end |
#setup {|_self| ... } ⇒ Object
16 17 18 19 |
# File 'lib/soybean/engine.rb', line 16 def setup @router = ::SOAP::RPC::Router.new(self.class.name) yield self end |