public interface HttpServerFileUpload extends ReadStream<Buffer>
Modifier and Type | Method and Description |
---|---|
String |
charset() |
String |
contentTransferEncoding() |
String |
contentType() |
HttpServerFileUpload |
endHandler(Handler<Void> endHandler)
Set an end handler.
|
HttpServerFileUpload |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream.
|
String |
filename() |
HttpServerFileUpload |
handler(Handler<Buffer> handler)
Set a data handler.
|
boolean |
isSizeAvailable() |
String |
name() |
HttpServerFileUpload |
pause()
Pause the
ReadSupport . |
HttpServerFileUpload |
resume()
Resume reading.
|
long |
size()
The size of the upload may not be available until it is all read.
|
HttpServerFileUpload |
streamToFileSystem(String filename)
Stream the content of this upload to the given file on storage.
|
HttpServerFileUpload exceptionHandler(Handler<Throwable> handler)
ReadStream
exceptionHandler
in interface ReadStream<Buffer>
exceptionHandler
in interface StreamBase
handler
- the exception handlerHttpServerFileUpload handler(Handler<Buffer> handler)
ReadStream
handler
in interface ReadStream<Buffer>
HttpServerFileUpload endHandler(Handler<Void> endHandler)
ReadStream
endHandler
in interface ReadStream<Buffer>
HttpServerFileUpload pause()
ReadStream
ReadSupport
. While it's paused, no data will be sent to the dataHandler
pause
in interface ReadStream<Buffer>
HttpServerFileUpload resume()
ReadStream
ReadSupport
has been paused, reading will recommence on it.resume
in interface ReadStream<Buffer>
HttpServerFileUpload streamToFileSystem(String filename)
filename
- the name of the fileString filename()
String name()
String contentType()
String contentTransferEncoding()
String charset()
long size()
isSizeAvailable()
to determine thisboolean isSizeAvailable()
size()
.Copyright © 2016. All rights reserved.