@Component(value="ui_RelativePathResource") @Scope(value="prototype") public class RelativePathResourceImpl extends AbstractResource implements WebResource, RelativePathResource
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
mimeType |
protected java.lang.String |
path |
hasSource, resource, resourceUpdateHandler
Constructor and Description |
---|
RelativePathResourceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
createResource() |
java.lang.String |
getMimeType() |
java.lang.String |
getPath() |
void |
setMimeType(java.lang.String mimeType)
Sets the mime type of the resource.
|
RelativePathResource |
setPath(java.lang.String path) |
fireResourceUpdateEvent, getResource, hasSource, setResourceUpdatedHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResource, hasSource
public RelativePathResource setPath(java.lang.String path)
setPath
in interface RelativePathResource
path
- path to the resource, e.g. "VAADIN/images/image.png"public java.lang.String getPath()
getPath
in interface RelativePathResource
protected void createResource()
createResource
in class AbstractResource
public void setMimeType(java.lang.String mimeType)
ResourceView.HasMimeType
setMimeType
in interface ResourceView.HasMimeType
mimeType
- the MIME type to be setpublic java.lang.String getMimeType()
getMimeType
in interface ResourceView.HasMimeType