@Component(value="ui_ClasspathResource") @Scope(value="prototype") public class ClasspathResourceImpl extends AbstractStreamSettingsResource implements WebResource, ClasspathResource
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
mimeType |
protected java.lang.String |
path |
protected io.jmix.core.Resources |
resources |
bufferSize, cacheTime, fileNamehasSource, resource, resourceUpdateHandler| Constructor and Description |
|---|
ClasspathResourceImpl() |
| 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.
|
ClasspathResource |
setPath(java.lang.String path) |
void |
setResources(io.jmix.core.Resources resources) |
getBufferSize, getCacheTime, getFileName, setBufferSize, setCacheTime, setFileNamefireResourceUpdateEvent, getResource, hasSource, setResourceUpdatedHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResource, hasSourcegetBufferSize, getCacheTime, getFileName, setBufferSize, setCacheTime, setFileNameprotected io.jmix.core.Resources resources
protected java.lang.String path
protected java.lang.String mimeType
@Autowired public void setResources(io.jmix.core.Resources resources)
public ClasspathResource setPath(java.lang.String path)
setPath in interface ClasspathResourcepublic java.lang.String getPath()
getPath in interface ClasspathResourceprotected void createResource()
createResource in class AbstractResourcepublic void setMimeType(java.lang.String mimeType)
ResourceView.HasMimeTypesetMimeType in interface ResourceView.HasMimeTypemimeType - the MIME type to be setpublic java.lang.String getMimeType()
getMimeType in interface ResourceView.HasMimeType