Logger::Application
# File lib/soap/rpc/httpserver.rb, line 25 25: def __attr_proxy(symbol, assignable = false) 26: name = symbol.to_s 27: define_method(name) { 28: @router.__send__(name) 29: } 30: if assignable 31: aname = name + '=' 32: define_method(aname) { |rhs| 33: @router.__send__(aname, rhs) 34: } 35: end 36: end
# File lib/soap/rpc/httpserver.rb, line 38 38: def __attr_proxy(symbol, assignable = false) 39: name = symbol.to_s 40: module_eval def #{name} @router.#{name} end 41: if assignable 42: module_eval def #{name}=(value) @router.#{name} = value end 43: end 44: end
# File lib/soap/rpc/httpserver.rb, line 61 61: def initialize(config) 62: actor = config[:SOAPHTTPServerApplicationName] || self.class.name 63: super(actor) 64: @default_namespace = config[:SOAPDefaultNamespace] 65: @webrick_config = config.dup 66: self.level = Logger::Severity::ERROR # keep silent by default 67: @webrick_config[:Logger] ||= @log 68: @log = @webrick_config[:Logger] # sync logger of App and HTTPServer 69: @router = ::SOAP::RPC::Router.new(actor) 70: @soaplet = ::SOAP::RPC::SOAPlet.new(@router) 71: on_init 72: @server = WEBrick::HTTPServer.new(@webrick_config) 73: @server.mount('/soaprouter', @soaplet) 74: if wsdldir = config[:WSDLDocumentDirectory] 75: @server.mount('/wsdl', WEBrick::HTTPServlet::FileHandler, wsdldir) 76: end 77: # for backward compatibility 78: @server.mount('/', @soaplet) 79: end
# File lib/soap/rpc/httpserver.rb, line 139 139: def add_document_method(obj, soapaction, name, req_qnames, res_qnames) 140: param_def = SOAPMethod.create_doc_param_def(req_qnames, res_qnames) 141: @router.add_document_operation(obj, soapaction, name, param_def) 142: end
# File lib/soap/rpc/httpserver.rb, line 152 152: def add_document_operation(receiver, soapaction, name, param_def, opt = {}) 153: @router.add_document_operation(receiver, soapaction, name, param_def, opt) 154: end
# File lib/soap/rpc/httpserver.rb, line 156 156: def add_document_request_operation(factory, soapaction, name, param_def, opt = {}) 157: @router.add_document_request_operation(factory, soapaction, name, param_def, opt) 158: end
# File lib/soap/rpc/httpserver.rb, line 115 115: def add_headerhandler(obj) 116: @router.add_headerhandler(obj) 117: end
# File lib/soap/rpc/httpserver.rb, line 111 111: def add_request_headerhandler(factory) 112: @router.add_request_headerhandler(factory) 113: end
method entry interface
# File lib/soap/rpc/httpserver.rb, line 126 126: def add_rpc_method(obj, name, *param) 127: add_rpc_method_as(obj, name, name, *param) 128: end
# File lib/soap/rpc/httpserver.rb, line 131 131: def add_rpc_method_as(obj, name, name_as, *param) 132: qname = XSD::QName.new(@default_namespace, name_as) 133: soapaction = nil 134: param_def = SOAPMethod.derive_rpc_param_def(obj, name, *param) 135: @router.add_rpc_operation(obj, qname, soapaction, name, param_def) 136: end
# File lib/soap/rpc/httpserver.rb, line 144 144: def add_rpc_operation(receiver, qname, soapaction, name, param_def, opt = {}) 145: @router.add_rpc_operation(receiver, qname, soapaction, name, param_def, opt) 146: end
# File lib/soap/rpc/httpserver.rb, line 148 148: def add_rpc_request_operation(factory, qname, soapaction, name, param_def, opt = {}) 149: @router.add_rpc_request_operation(factory, qname, soapaction, name, param_def, opt) 150: end
servant entry interface
# File lib/soap/rpc/httpserver.rb, line 103 103: def add_rpc_request_servant(factory, namespace = @default_namespace) 104: @router.add_rpc_request_servant(factory, namespace) 105: end
# File lib/soap/rpc/httpserver.rb, line 107 107: def add_rpc_servant(obj, namespace = @default_namespace) 108: @router.add_rpc_servant(obj, namespace) 109: end
# File lib/soap/rpc/httpserver.rb, line 93 93: def authenticator 94: @soaplet.authenticator 95: end
# File lib/soap/rpc/httpserver.rb, line 97 97: def authenticator=(authenticator) 98: @soaplet.authenticator = authenticator 99: end
# File lib/soap/rpc/httpserver.rb, line 120 120: def filterchain 121: @router.filterchain 122: end
# File lib/soap/rpc/httpserver.rb, line 81 81: def on_init 82: # do extra initialization in a derived class if needed. 83: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.