Parent

Files

Class Index [+]

Quicksearch

SOAP::RPC::HTTPServer

Attributes

server[R]
default_namespace[RW]

Public Class Methods

__attr_proxy(symbol, assignable = false) click to toggle source
    # 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
__attr_proxy(symbol, assignable = false) click to toggle source
    # 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
new(config) click to toggle source
    # 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

Public Instance Methods

add_document_method(obj, soapaction, name, req_qnames, res_qnames) click to toggle source
     # 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
add_document_operation(receiver, soapaction, name, param_def, opt = {}) click to toggle source
     # 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
add_document_request_operation(factory, soapaction, name, param_def, opt = {}) click to toggle source
     # 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
add_headerhandler(obj) click to toggle source
     # File lib/soap/rpc/httpserver.rb, line 115
115:   def add_headerhandler(obj)
116:     @router.add_headerhandler(obj)
117:   end
Also aliased as: add_rpc_headerhandler
add_method(obj, name, *param) click to toggle source
Alias for: add_rpc_method
add_method_as(obj, name, name_as, *param) click to toggle source
Alias for: add_rpc_method_as
add_request_headerhandler(factory) click to toggle source
     # File lib/soap/rpc/httpserver.rb, line 111
111:   def add_request_headerhandler(factory)
112:     @router.add_request_headerhandler(factory)
113:   end
add_rpc_headerhandler(obj) click to toggle source
Alias for: add_headerhandler
add_rpc_method(obj, name, *param) click to toggle source

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
Also aliased as: add_method
add_rpc_method_as(obj, name, name_as, *param) click to toggle source
     # 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
Also aliased as: add_method_as
add_rpc_operation(receiver, qname, soapaction, name, param_def, opt = {}) click to toggle source
     # 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
add_rpc_request_operation(factory, qname, soapaction, name, param_def, opt = {}) click to toggle source
     # 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
add_rpc_request_servant(factory, namespace = @default_namespace) click to toggle source

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
add_rpc_servant(obj, namespace = @default_namespace) click to toggle source
     # 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
authenticator() click to toggle source
    # File lib/soap/rpc/httpserver.rb, line 93
93:   def authenticator
94:     @soaplet.authenticator
95:   end
authenticator=(authenticator) click to toggle source
    # File lib/soap/rpc/httpserver.rb, line 97
97:   def authenticator=(authenticator)
98:     @soaplet.authenticator = authenticator
99:   end
filterchain() click to toggle source
     # File lib/soap/rpc/httpserver.rb, line 120
120:   def filterchain
121:     @router.filterchain
122:   end
on_init() click to toggle source
    # File lib/soap/rpc/httpserver.rb, line 81
81:   def on_init
82:     # do extra initialization in a derived class if needed.
83:   end
shutdown() click to toggle source
    # File lib/soap/rpc/httpserver.rb, line 89
89:   def shutdown
90:     @server.shutdown if @server
91:   end
status() click to toggle source
    # File lib/soap/rpc/httpserver.rb, line 85
85:   def status
86:     @server.status if @server
87:   end

Private Instance Methods

run() click to toggle source
     # File lib/soap/rpc/httpserver.rb, line 162
162:   def run
163:     @server.start
164:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.