Package muntjac :: Package terminal :: Module external_resource :: Class ExternalResource
[hide private]
[frames] | no frames]

Class ExternalResource

source code

        object --+    
                 |    
resource.IResource --+
                     |
                    ExternalResource

ExternalResource implements source for resources fetched from location specified by URLs. The resources are fetched directly by the client terminal and are not fetched trough the terminal adapter.


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

Instance Methods [hide private]
 
__init__(self, sourceURL, mimeType=None)
Creates a new download component for downloading directly from given URL.
source code
 
getURL(self)
Gets the URL of the external resource.
source code
 
getMIMEType(self)
Gets the MIME type of the resource.
source code
 
setMIMEType(self, mimeType)
Sets the MIME type of the resource.
source code

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, sourceURL, mimeType=None)
(Constructor)

source code 

Creates a new download component for downloading directly from given URL.

Parameters:
  • sourceURL - the source URL.
  • mimeType - the MIME Type
Overrides: object.__init__

getURL(self)

source code 

Gets the URL of the external resource.

Returns:
the URL of the external resource.

getMIMEType(self)

source code 

Gets the MIME type of the resource.

Returns:
the MIME type of the resource.
Overrides: resource.IResource.getMIMEType