@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, fileName
hasSource, 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, setFileName
fireResourceUpdateEvent, getResource, hasSource, setResourceUpdatedHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResource, hasSource
getBufferSize, getCacheTime, getFileName, setBufferSize, setCacheTime, setFileName
protected 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 ClasspathResource
public java.lang.String getPath()
getPath
in interface ClasspathResource
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