Package brisa :: Package upnp :: Package device :: Module event :: Class EventController
[hide private]
[frames] | no frames]

Class EventController

source code

               object --+        
                        |        
  core.webserver.Resource --+    
                            |    
core.webserver.CustomResource --+
                                |
                               EventController

Listen for event subscribe and unsubscribe at device services. It also manager the list of the control points interested at service eventing.

Instance Methods [hide private]
 
__init__(self, service)
Constructor for the Resource class.
source code
 
render(self, uri, request, response)
Event renderer method.
source code
 
render_subscriber(self, request, response, compressed_headers)
Renders the subscribe message for an event.
source code
 
_validate_subscribe_request(self, request, compressed_headers) source code
 
_get_subscribe_response(self, request, response_obj, subscriber) source code
 
render_renew(self, request, response, compressed_headers)
Renders the subscribe renew message for an event.
source code
 
_validate_renew_request(self, request, compressed_headers) source code
 
_auto_remove_subscriber(self, sid) source code
 
render_unsubscribe(self, request, response, compressed_headers)
Renders the unsubscribe message for an event.
source code
 
_validate_unsubscribe_request(self, request, compressed_headers) source code
 
_build_error(self, request, response_obj, status) source code
 
_find_subscriber(self, sid) source code
 
_remove_subscriber(self, subscriber) source code

Inherited from core.webserver.Resource: add_resource, add_static_file, application, get_render

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, service)
(Constructor)

source code 

Constructor for the Resource class.

Parameters:
  • name - resource name visible on the webserver
Overrides: object.__init__
(inherited documentation)

render(self, uri, request, response)

source code 

Event renderer method.

Parameters:
  • uri (string) - URI of the request
  • request - request object (Cherrypy)
  • response - response object (Cherrypy)
Overrides: core.webserver.Resource.render

Note: see Cherrypy documentation for further info about request and response attributes and methods.

render_subscriber(self, request, response, compressed_headers)

source code 

Renders the subscribe message for an event.

Parameters:
  • request - request object (Cherrypy)
  • response - response object (Cherrypy)

Note: see Cherrypy documentation for further info about request and response attributes and methods.

render_renew(self, request, response, compressed_headers)

source code 

Renders the subscribe renew message for an event.

Parameters:
  • request - request object (Cherrypy)
  • response - response object (Cherrypy)

Note: see Cherrypy documentation for further info about request and response attributes and methods.

render_unsubscribe(self, request, response, compressed_headers)

source code 

Renders the unsubscribe message for an event.

Parameters:
  • request - request object (Cherrypy)
  • response - response object (Cherrypy)

Note: see Cherrypy documentation for further info about request and response attributes and methods.