Trees | Indices | Help |
|
---|
|
Actual mime-type renderings.
Created on Jun 28, 2011
Author: tmetsch
|
|||
HTTPData Simple class which functions as an adapter between the OCCI model and the HTTP rendering. |
|||
TextOcciRendering This is a rendering which will use the HTTP header to place the information in an syntax and semantics as defined in the OCCI specification. |
|||
TextPlainRendering This is a rendering which will use the HTTP body to place the information in an syntax and semantics as defined in the OCCI specification. |
|||
TextUriListRendering This is a rendering which can handle URI lists. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
__package__ =
|
Imports: Resource, Link, CATEGORY, ATTRIBUTE, LOCATION, LINK, CONTENT_TYPE, Rendering, parser, shlex
|
Extract an entity from the HTTP data object. data -- The http data object def_kind -- A given kind definition. registry -- The registry. extras -- Passed on extra object. |
Create a HTTP data object from an entity. entity -- The entity to render. registry -- Registry. |
Extract a set of (in the service existing) entities from a request. data -- the HTTP data. registry -- The registry used for this call. extras -- Passed on extra object. |
Return a list of entities using the X-OCCI-Location attribute. entity_list -- list of entities. registry -- The registry used for this call.registry |
Create a HTTP data object from a set of categories. categories -- list of categories. registry -- needed to retrieve hostname info. |
Create an action from an HTTP data object. data -- the HTTP data. registry -- The registry used for this call. extras -- Passed on extra object. |
Create a Mixin from an HTTP data object. data -- the HTTP data. registry -- The registry used for this call. extras -- Passed on extra object. |
Parse categories and attributes from the request. data -- the HTTP data. registry -- The registry used for this call. extras -- Passed on extra object. |
Simple method to split out the information from the HTTP headers. headers -- The HTTP headers. |
Simple method to set all information in the HTTP header. data -- The data to set. mime_type -- The content type to set. |
Simple method to split out the information from the HTTP body. body -- The HTTP body. |
In HTTP body OCCI renderings can either be in new lines or separated by ,. entry -- The text line to look into. key -- The key to look for and strip away. |
Simple method to set all information in the HTTP body. data -- The data to set. mime_type -- The content type to set. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Nov 19 09:07:42 2012 | http://epydoc.sourceforge.net |