Logger::Application
# File lib/soap/rpc/httpserver.rb, line 25 def __attr_proxy(symbol, assignable = false) name = symbol.to_s define_method(name) { @router.__send__(name) } if assignable aname = name + '=' define_method(aname) { |rhs| @router.__send__(aname, rhs) } end end
# File lib/soap/rpc/httpserver.rb, line 61 def initialize(config) actor = config[:SOAPHTTPServerApplicationName] || self.class.name super(actor) @default_namespace = config[:SOAPDefaultNamespace] @webrick_config = config.dup self.level = Logger::Severity::ERROR # keep silent by default @webrick_config[:Logger] ||= @log @log = @webrick_config[:Logger] # sync logger of App and HTTPServer @router = ::SOAP::RPC::Router.new(actor) @soaplet = ::SOAP::RPC::SOAPlet.new(@router) on_init @server = WEBrick::HTTPServer.new(@webrick_config) @server.mount('/soaprouter', @soaplet) if wsdldir = config[:WSDLDocumentDirectory] @server.mount('/wsdl', WEBrick::HTTPServlet::FileHandler, wsdldir) end # for backward compatibility @server.mount('/', @soaplet) end
# File lib/soap/rpc/httpserver.rb, line 139 def add_document_method(obj, soapaction, name, req_qnames, res_qnames) param_def = SOAPMethod.create_doc_param_def(req_qnames, res_qnames) @router.add_document_operation(obj, soapaction, name, param_def) end
# File lib/soap/rpc/httpserver.rb, line 152 def add_document_operation(receiver, soapaction, name, param_def, opt = {}) @router.add_document_operation(receiver, soapaction, name, param_def, opt) end
# File lib/soap/rpc/httpserver.rb, line 156 def add_document_request_operation(factory, soapaction, name, param_def, opt = {}) @router.add_document_request_operation(factory, soapaction, name, param_def, opt) end
# File lib/soap/rpc/httpserver.rb, line 115 def add_headerhandler(obj) @router.add_headerhandler(obj) end
# File lib/soap/rpc/httpserver.rb, line 111 def add_request_headerhandler(factory) @router.add_request_headerhandler(factory) end
method entry interface
# File lib/soap/rpc/httpserver.rb, line 126 def add_rpc_method(obj, name, *param) add_rpc_method_as(obj, name, name, *param) end
# File lib/soap/rpc/httpserver.rb, line 131 def add_rpc_method_as(obj, name, name_as, *param) qname = XSD::QName.new(@default_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
# File lib/soap/rpc/httpserver.rb, line 144 def add_rpc_operation(receiver, qname, soapaction, name, param_def, opt = {}) @router.add_rpc_operation(receiver, qname, soapaction, name, param_def, opt) end
# File lib/soap/rpc/httpserver.rb, line 148 def add_rpc_request_operation(factory, qname, soapaction, name, param_def, opt = {}) @router.add_rpc_request_operation(factory, qname, soapaction, name, param_def, opt) end
servant entry interface
# File lib/soap/rpc/httpserver.rb, line 103 def add_rpc_request_servant(factory, namespace = @default_namespace) @router.add_rpc_request_servant(factory, namespace) end
# File lib/soap/rpc/httpserver.rb, line 107 def add_rpc_servant(obj, namespace = @default_namespace) @router.add_rpc_servant(obj, namespace) end
# File lib/soap/rpc/httpserver.rb, line 93 def authenticator @soaplet.authenticator end
# File lib/soap/rpc/httpserver.rb, line 97 def authenticator=(authenticator) @soaplet.authenticator = authenticator end
# File lib/soap/rpc/httpserver.rb, line 120 def filterchain @router.filterchain end
# File lib/soap/rpc/httpserver.rb, line 81 def on_init # do extra initialization in a derived class if needed. end
Generated with the Darkfish Rdoc Generator 2.