Bases: object
Maps method name to local methods through action name.
Find and call local method.
Bases: nova.api.openstack.wsgi.ActionDispatcher
Default request body serialization
Bases: nova.api.openstack.wsgi.TextDeserializer
Bases: nova.api.openstack.wsgi.DictSerializer
Default JSON request body serialization
Bases: nova.api.openstack.wsgi.XMLDeserializer
Marshal the metadata attribute of a parsed request
Bases: webob.request.Request
Add some Openstack API-specific logic to the base webob.Request.
Determine the requested response content-type.
Based on the query extension then the Accept header.
Determine content type of the request body.
Does not do any body introspection, only checks header
Bases: object
Break up a Request object into more useful pieces.
Extract necessary pieces of the request.
Parameters: | request – Request object |
---|
Parse dictionary created by routes library.
Bases: nova.api.openstack.wsgi.ActionDispatcher
Default request headers deserializer
Bases: nova.wsgi.Application
WSGI app that handles (de)serialization and controller dispatch.
WSGI app that reads routing information supplied by RoutesMiddleware and calls the requested action method upon its controller. All controller action methods must accept a ‘req’ argument, which is the incoming wsgi.Request. If the operation is a PUT or POST, the controller method must also accept a ‘body’ argument (the deserialized request body). They may raise a webob.exc exception or return a dict, which will be serialized by requested content type.
Find action-spefic method on controller and call it.
Bases: nova.api.openstack.wsgi.ActionDispatcher
Default response headers serialization
Bases: object
Encode the necessary pieces into a response object
Serialize a dict into a string and wrap in a wsgi.Request object.
Parameters: |
|
---|
Bases: nova.api.openstack.wsgi.ActionDispatcher
Default request body deserialization
Bases: nova.api.openstack.wsgi.TextDeserializer
Get the text field contained by the given node
Return all of a nodes children who have the given name
Search a nodes children for the first child with a given name
Bases: nova.api.openstack.wsgi.DictSerializer