Package muntjac :: Package terminal :: Module uri_handler :: Class IUriHandler
[hide private]
[frames] | no frames]

Class IUriHandler

source code

object --+
         |
        IUriHandler

A IUriHandler is used for handling URIs requested by the user and can optionally provide a DownloadStream. If a DownloadStream is returned by handleURI, the stream is sent to the client.


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

Instance Methods [hide private]
 
handleURI(self, context, relativeUri)
Handles a given URI.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

handleURI(self, context, relativeUri)

source code 

Handles a given URI. If the URI handler to emit a downloadable stream it should return a DownloadStream object.

Parameters:
  • context - the base URL
  • relativeUri - a URI relative to context
Returns:
A downloadable stream or null if no stream is provided