Module: Puppet::Network

Defined in:
lib/vendor/puppet/network.rb,
lib/vendor/puppet/network/rights.rb,
lib/vendor/puppet/network/handler.rb,
lib/vendor/puppet/network/http_pool.rb,
lib/vendor/puppet/network/authorization.rb,
lib/vendor/puppet/network/xmlrpc/server.rb,
lib/vendor/puppet/network/client_request.rb,
lib/vendor/puppet/network/rest_authorization.rb,
lib/vendor/puppet/network/http_server/mongrel.rb,
lib/vendor/puppet/network/xmlrpc/processor.rb

Overview

This handler can be hooked into Mongrel to accept HTTP requests. After checking whether the request itself is sane, the handler forwards it to an internal instance of XMLRPC::BasicServer to process it.

You can access the server by calling the Handler’s “xmlrpc_server” attribute accessor method and add XMLRPC handlers there. For example:

<pre> handler = XmlRpcHandler.new handler.xmlrpc_server.add_handler(“my.add”) { |a, b| a.to_i + b.to_i } </pre>

Defined Under Namespace

Modules: Authorization, FormatHandler, HTTP, HTTPServer, HttpPool, RestAuthorization, XMLRPC, XMLRPCProcessor Classes: AuthConfig, AuthStore, AuthorizationError, ClientRequest, Format, Handler, InvalidClientRequest, RESTController, RestAuthConfig, Rights, Server, XMLRPCServer