com.itmill.toolkit.terminal
Class ExternalResource

java.lang.Object
  extended by com.itmill.toolkit.terminal.ExternalResource
All Implemented Interfaces:
Resource

public class ExternalResource
extends Object
implements Resource

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

Since:
3.0
Version:
5.3.0
Author:
IT Mill Ltd.

Constructor Summary
ExternalResource(String sourceURL)
          Creates a new download component for downloading directly from given URL.
ExternalResource(URL sourceURL)
          Creates a new download component for downloading directly from given URL.
 
Method Summary
 String getMIMEType()
          Gets the MIME type of the resource.
 String getURL()
          Gets the URL of the external resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalResource

public ExternalResource(URL sourceURL)
Creates a new download component for downloading directly from given URL.

Parameters:
sourceURL - the source URL.

ExternalResource

public ExternalResource(String sourceURL)
Creates a new download component for downloading directly from given URL.

Parameters:
sourceURL - the source URL.
Method Detail

getURL

public String getURL()
Gets the URL of the external resource.

Returns:
the URL of the external resource.

getMIMEType

public String getMIMEType()
Gets the MIME type of the resource.

Specified by:
getMIMEType in interface Resource
Returns:
the MIME type of the resource.
See Also:
Resource.getMIMEType()


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.