|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.ExternalResource
public class ExternalResource
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 Summary | |
---|---|
ExternalResource(java.lang.String sourceURL)
Creates a new download component for downloading directly from given URL. |
|
ExternalResource(java.lang.String sourceURL,
java.lang.String mimeType)
Creates a new download component for downloading directly from given URL. |
|
ExternalResource(java.net.URL sourceURL)
Creates a new download component for downloading directly from given URL. |
|
ExternalResource(java.net.URL sourceURL,
java.lang.String mimeType)
Creates a new download component for downloading directly from given URL. |
Method Summary | |
---|---|
java.lang.String |
getMIMEType()
Gets the MIME type of the resource. |
java.lang.String |
getURL()
Gets the URL of the external resource. |
void |
setMIMEType(java.lang.String mimeType)
Sets the MIME type of the resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExternalResource(java.net.URL sourceURL)
sourceURL
- the source URL.public ExternalResource(java.net.URL sourceURL, java.lang.String mimeType)
sourceURL
- the source URL.mimeType
- the MIME Typepublic ExternalResource(java.lang.String sourceURL)
sourceURL
- the source URL.public ExternalResource(java.lang.String sourceURL, java.lang.String mimeType)
sourceURL
- the source URL.mimeType
- the MIME TypeMethod Detail |
---|
public java.lang.String getURL()
public java.lang.String getMIMEType()
getMIMEType
in interface Resource
Resource.getMIMEType()
public void setMIMEType(java.lang.String mimeType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |