@groovy.transform.CompileStatic class HttpServerFileUpload extends java.lang.Object
Represents an file upload from an HTML FORM.
Constructor and description |
---|
HttpServerFileUpload
(java.lang.Object delegate) |
Type | Name and description |
---|---|
java.lang.String |
charset() @return
|
java.lang.String |
contentTransferEncoding() @return
|
java.lang.String |
contentType() @return
|
HttpServerFileUpload |
endHandler(io.vertx.core.Handler<java.lang.Void> endHandler) |
HttpServerFileUpload |
exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler) |
java.lang.String |
filename()
|
java.lang.Object |
getDelegate() |
HttpServerFileUpload |
handler(io.vertx.core.Handler<Buffer> handler) |
boolean |
isSizeAvailable()
|
java.lang.String |
name() @return
|
HttpServerFileUpload |
pause() |
HttpServerFileUpload |
resume() |
long |
size() The size of the upload may not be available until it is all read. |
HttpServerFileUpload |
streamToFileSystem(java.lang.String filename) Stream the content of this upload to the given file on storage. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The size of the upload may not be available until it is all read. Check HttpServerFileUpload.isSizeAvailable to determine this
Stream the content of this upload to the given file on storage.
filename
- the name of the file