Package io.jmix.ui.component.impl
Class StreamResourceImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractResource
io.jmix.ui.component.impl.AbstractStreamSettingsResource
io.jmix.ui.component.impl.StreamResourceImpl
- All Implemented Interfaces:
WebResource,Resource,ResourceView.HasMimeType,ResourceView.HasStreamSettings,StreamResource
@Component("ui_StreamResource")
@Scope("prototype")
public class StreamResourceImpl
extends AbstractStreamSettingsResource
implements WebResource, StreamResource
-
Field Summary
FieldsFields inherited from class io.jmix.ui.component.impl.AbstractStreamSettingsResource
bufferSize, cacheTime, fileNameFields inherited from class io.jmix.ui.component.impl.AbstractResource
hasSource, resource, resourceUpdateHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidsetMimeType(String mimeType) Sets the mime type of the resource.setStreamSupplier(Supplier<InputStream> streamSupplier) Methods inherited from class io.jmix.ui.component.impl.AbstractStreamSettingsResource
getBufferSize, getCacheTime, getFileName, setBufferSize, setCacheTime, setFileNameMethods inherited from class io.jmix.ui.component.impl.AbstractResource
fireResourceUpdateEvent, getResource, hasSource, setResourceUpdatedHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.component.ResourceView.HasStreamSettings
getBufferSize, getCacheTime, getFileName, setBufferSize, setCacheTime, setFileNameMethods inherited from interface io.jmix.ui.component.impl.WebResource
getResource, hasSource
-
Field Details
-
streamSupplier
-
mimeType
-
-
Constructor Details
-
StreamResourceImpl
public StreamResourceImpl()
-
-
Method Details
-
setStreamSupplier
- Specified by:
setStreamSupplierin interfaceStreamResource
-
getStreamSupplier
- Specified by:
getStreamSupplierin interfaceStreamResource
-
createResource
protected void createResource()- Specified by:
createResourcein classAbstractResource
-
setMimeType
Description copied from interface:ResourceView.HasMimeTypeSets the mime type of the resource.- Specified by:
setMimeTypein interfaceResourceView.HasMimeType- Parameters:
mimeType- the MIME type to be set
-
getMimeType
- Specified by:
getMimeTypein interfaceResourceView.HasMimeType- Returns:
- resource MIME type
-