public class ReactiveGridFsUpload<ID> extends Object implements GridFsObject<ID,org.reactivestreams.Publisher<DataBuffer>>
| Modifier and Type | Class and Description |
|---|---|
static class |
ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<T>
Builder to create
ReactiveGridFsUpload in a fluent way. |
GridFsObject.Options| Modifier and Type | Method and Description |
|---|---|
static ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<org.bson.types.ObjectId> |
fromPublisher(org.reactivestreams.Publisher<DataBuffer> source)
Create a new instance of
ReactiveGridFsUpload for the given Publisher. |
org.reactivestreams.Publisher<DataBuffer> |
getContent()
The actual file content.
|
ID |
getFileId()
The
GridFSFile.getId() value converted into its simple java type. |
String |
getFilename()
The filename.
|
GridFsObject.Options |
getOptions()
Additional information like file metadata (eg. contentType).
|
@Nullable public ID getFileId()
GridFSFile.getId() value converted into its simple java type. BsonString will be converted to plain String.getFileId in interface GridFsObject<ID,org.reactivestreams.Publisher<DataBuffer>>GridFsObject.getFileId()public String getFilename()
GridFsObjectgetFilename in interface GridFsObject<ID,org.reactivestreams.Publisher<DataBuffer>>public org.reactivestreams.Publisher<DataBuffer> getContent()
GridFsObjectgetContent in interface GridFsObject<ID,org.reactivestreams.Publisher<DataBuffer>>public GridFsObject.Options getOptions()
GridFsObjectgetOptions in interface GridFsObject<ID,org.reactivestreams.Publisher<DataBuffer>>public static ReactiveGridFsUpload.ReactiveGridFsUploadBuilder<org.bson.types.ObjectId> fromPublisher(org.reactivestreams.Publisher<DataBuffer> source)
ReactiveGridFsUpload for the given Publisher.source - must not be null.GridFsUpload.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.