diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-08 15:09:49 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-08 15:09:49 +0000 |
commit | e075097587988a44b4b26ba4ff7addc93e601728 (patch) | |
tree | f16c5da9f71ed9f80d97b97a114a8c24a57ed8a1 /lib | |
parent | 98bbcb60fa2912b6be92b0f91ae0f19ba6687651 (diff) | |
download | ruby-e075097587988a44b4b26ba4ff7addc93e601728.tar.gz ruby-e075097587988a44b4b26ba4ff7addc93e601728.tar.xz ruby-e075097587988a44b4b26ba4ff7addc93e601728.zip |
* lib/soap/rpc/standaloneServer.rb: add 'shutdown' and 'status'
methods as delegates to WEBrick.
* test/soap/calc/{test_calc.rb,test_calc2.rb},
test/soap/helloworld/test_helloworld.rb,
test/wsdl/datetime/test_datetime.rb, test/wsdl/raa/test_raa.rb:
follow the change.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/soap/property.rb | 3 | ||||
-rw-r--r-- | lib/soap/rpc/standaloneServer.rb | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/lib/soap/property.rb b/lib/soap/property.rb index b67ffa836..d2bae8882 100644 --- a/lib/soap/property.rb +++ b/lib/soap/property.rb @@ -79,7 +79,7 @@ class Property self[generate_new_key] = value end - # name: a Symbol, String or an Array. nil means hook to the root. + # name: a Symbol, String or an Array. nil means hook to the root # hook: block which will be called with 2 args, name and value def add_hook(name = nil, &hook) if name.nil? @@ -142,6 +142,7 @@ protected end end + # returns: Array of hook def assign(ary, value) key, rest = location_pair(ary) if rest.empty? diff --git a/lib/soap/rpc/standaloneServer.rb b/lib/soap/rpc/standaloneServer.rb index f3f225c7d..42a566e08 100644 --- a/lib/soap/rpc/standaloneServer.rb +++ b/lib/soap/rpc/standaloneServer.rb @@ -51,6 +51,18 @@ class StandaloneServer < Logger::Application def on_init # define extra methods in derived class. end + + def status + if @server + @server.status + else + nil + end + end + + def shutdown + @server.shutdown + end def add_rpc_request_servant(klass, namespace = @namespace, mapping_registry = nil) @soaplet.add_rpc_request_servant(klass, namespace, mapping_registry) |