public class ExternalResource extends Object implements Resource, Serializable
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.| Constructor and Description |
|---|
ExternalResource(String sourceURL)
Creates a new download component for downloading directly from given URL.
|
ExternalResource(String sourceURL,
String mimeType)
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.
|
ExternalResource(URL sourceURL,
String mimeType)
Creates a new download component for downloading directly from given URL.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMIMEType()
Gets the MIME type of the resource.
|
String |
getURL()
Gets the URL of the external resource.
|
void |
setMIMEType(String mimeType)
Sets the MIME type of the resource.
|
public ExternalResource(URL sourceURL)
sourceURL - the source URL.public ExternalResource(URL sourceURL, String mimeType)
sourceURL - the source URL.mimeType - the MIME Typepublic ExternalResource(String sourceURL)
sourceURL - the source URL.public String getURL()
public String getMIMEType()
getMIMEType in interface ResourceResource.getMIMEType()public void setMIMEType(String mimeType)
Copyright © 2022 Vaadin Ltd. All rights reserved.