org.millstone.base.terminal
Class ExternalResource

java.lang.Object
  |
  +--org.millstone.base.terminal.ExternalResource
All Implemented Interfaces:
Resource

public class ExternalResource
extends java.lang.Object
implements Resource

External resource 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:
3.0.3
Author:
IT Mill Ltd.

Constructor Summary
ExternalResource(java.lang.String sourceURL)
          Create new download component for downloading directly from given URL.
ExternalResource(java.net.URL sourceURL)
          Create new download component for downloading directly from given URL.
 
Method Summary
 java.lang.String getMIMEType()
          Get the MIME type of the resource.
 java.lang.String getURL()
          Get 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(java.net.URL sourceURL)
Create new download component for downloading directly from given URL.


ExternalResource

public ExternalResource(java.lang.String sourceURL)
Create new download component for downloading directly from given URL.

Method Detail

getURL

public java.lang.String getURL()
Get the URL of the external resource


getMIMEType

public java.lang.String getMIMEType()
Description copied from interface: Resource
Get the MIME type of the resource.

Specified by:
getMIMEType in interface Resource


Copyright © 2000,2001,2002 IT Mill Ltd. All Rights Reserved.