public class HttpServerFileUpload extends Object implements ReadStream<Buffer>
original
non RX-ified interface using Vert.x codegen.Constructor and Description |
---|
HttpServerFileUpload(HttpServerFileUpload delegate) |
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() |
Object |
getDelegate() |
HttpServerFileUpload |
handler(Handler<Buffer> handler)
Set a data handler.
|
boolean |
isSizeAvailable() |
String |
name() |
static HttpServerFileUpload |
newInstance(HttpServerFileUpload arg) |
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.
|
rx.Observable<Buffer> |
toObservable() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newInstance
newInstance
public HttpServerFileUpload(HttpServerFileUpload delegate)
public Object getDelegate()
getDelegate
in interface ReadStream<Buffer>
getDelegate
in interface StreamBase
public rx.Observable<Buffer> toObservable()
toObservable
in interface ReadStream<Buffer>
public HttpServerFileUpload exceptionHandler(Handler<Throwable> handler)
ReadStream
exceptionHandler
in interface ReadStream<Buffer>
exceptionHandler
in interface StreamBase
handler
- the exception handlerpublic HttpServerFileUpload handler(Handler<Buffer> handler)
ReadStream
handler
in interface ReadStream<Buffer>
public HttpServerFileUpload endHandler(Handler<Void> endHandler)
ReadStream
endHandler
in interface ReadStream<Buffer>
public HttpServerFileUpload pause()
ReadStream
ReadSupport
. While it's paused, no data will be sent to the dataHandler
pause
in interface ReadStream<Buffer>
public HttpServerFileUpload resume()
ReadStream
ReadSupport
has been paused, reading will recommence on it.resume
in interface ReadStream<Buffer>
public HttpServerFileUpload streamToFileSystem(String filename)
filename
- the name of the filepublic String filename()
public String name()
public String contentType()
public String contentTransferEncoding()
public String charset()
public long size()
HttpServerFileUpload
to determine thispublic boolean isSizeAvailable()
HttpServerFileUpload
.public static HttpServerFileUpload newInstance(HttpServerFileUpload arg)
Copyright © 2015. All Rights Reserved.