private static class SynchronossPartHttpMessageReader.SynchronossFilePart extends SynchronossPartHttpMessageReader.DefaultSynchronossPart implements FilePart
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
filename |
Constructor and Description |
---|
SynchronossFilePart(HttpHeaders headers,
StreamStorage storage,
DataBufferFactory factory,
java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
filename()
Return the original filename in the client's filesystem.
|
<any> |
transferTo(java.io.File destination)
Transfer the file in this part to the given file destination.
|
content, getStorage
getBufferFactory, headers, name
public SynchronossFilePart(HttpHeaders headers, StreamStorage storage, DataBufferFactory factory, java.lang.String filename)
public java.lang.String filename()
FilePart
public <any> transferTo(java.io.File destination)
FilePart
transferTo
in interface FilePart
destination
- the target fileMono
with the result of the file transfer,
possibly IllegalStateException
if the part isn't a file