Package occi :: Package protocol :: Module occi_rendering :: Class TextPlainRendering
[hide private]
[frames] | no frames]

Class TextPlainRendering

source code

         object --+        
                  |        
rendering.Rendering --+    
                      |    
      TextOcciRendering --+
                          |
                         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.

Instance Methods [hide private]
 
set_data(self, data)
Mainly here so TextPlainRendering can reuse.
source code
 
get_data(self, headers, body)
Mainly here so TextPlainRendering can reuse.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

    Inherited from TextOcciRendering
 
from_categories(self, categories)
Given an set of categories it will return a HTTP body an header.
source code
 
from_entities(self, entities, key)
Given an set of entities it will return a HTTP body an header.
source code
 
from_entity(self, entity)
Given an entity it will return a HTTP body an header.
source code
 
get_filters(self, headers, body, extras)
Given the HTTP headers and the body this method will convert the HTTP data into a list of categories and attributes.
source code
 
to_action(self, headers, body, extras)
Given the HTTP headers and the body this method will convert the HTTP data into an Action.
source code
 
to_entities(self, headers, body, extras)
Given the HTTP headers and the body this method will convert the HTTP data into a set of entity representations.
source code
 
to_entity(self, headers, body, def_kind, extras)
Given the HTTP headers and the body this method will convert the HTTP data into an entity representation.
source code
 
to_mixins(self, headers, body, extras)
Given the HTTP headers and the body this method will convert the HTTP data into a Mixins.
source code
    Inherited from rendering.Rendering
 
__init__(self, registry)
Constructor.
source code
Class Variables [hide private]
  mime_type = 'text/plain'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

set_data(self, data)

source code 

Mainly here so TextPlainRendering can reuse.

data -- An HTTPData object.

Overrides: TextOcciRendering.set_data
(inherited documentation)

get_data(self, headers, body)

source code 

Mainly here so TextPlainRendering can reuse.

headers -- The headers of the request. body -- The body of the request.

Overrides: TextOcciRendering.get_data
(inherited documentation)