| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final Charset | |
| private final String | |
| private final String | |
| private final ContextInternal | |
| private Handler | |
| private Handler | |
| private Handler | |
| private AsyncFile | |
| private final String | |
| private boolean | |
| private final String | |
| private Pipe | |
| private long | |
| private final ReadStream |
| Access | Constructor and Description |
|---|---|
| pack-priv | HttpServerFileUploadImpl(ContextInternal context, ReadStream<Buffer> stream, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | cancelStreamToFileSystem()
Implements io. Try to cancel the file system streaming, the streamed file will be deleted. |
| public String | |
| public String | |
| public String | |
| public synchronized HttpServerFileUpload | |
| public synchronized HttpServerFileUpload | exceptionHandler(Handler<Throwable> exceptionHandler)
Implements io.
|
| public HttpServerFileUpload | fetch(long amount)
Implements io. Fetch the specified |
| public synchronized AsyncFile | |
| public String | |
| private void | handleData(Buffer data)
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private void | |
| private void | |
| public synchronized HttpServerFileUpload | |
| public synchronized boolean | |
| public String | |
| public HttpServerFileUpload | pause()
Implements io. Pause the |
| public HttpServerFileUpload | resume()
Implements io. Resume reading, and sets the buffer in |
| public synchronized long | size()
Implements io. The size of the upload may not be available until it is all read. |
| public void | streamToFileSystem(String
the name of the file filename, Handler<AsyncResult<Void>> handler)Implements io. Stream the content of this upload to the given file on storage. |
| public Future | streamToFileSystem(String
the name of the file filename)Implements io. Stream the content of this upload to the given file on storage. |
| cancelled | back to summary |
|---|---|
| private boolean cancelled | |
| charset | back to summary |
|---|---|
| private final Charset charset | |
| contentTransferEncoding | back to summary |
|---|---|
| private final String contentTransferEncoding | |
| contentType | back to summary |
|---|---|
| private final String contentType | |
| context | back to summary |
|---|---|
| private final ContextInternal context | |
| dataHandler | back to summary |
|---|---|
| private Handler<Buffer> dataHandler | |
| endHandler | back to summary |
|---|---|
| private Handler<Void> endHandler | |
| exceptionHandler | back to summary |
|---|---|
| private Handler<Throwable> exceptionHandler | |
| file | back to summary |
|---|---|
| private AsyncFile file | |
| filename | back to summary |
|---|---|
| private final String filename | |
| lazyCalculateSize | back to summary |
|---|---|
| private boolean lazyCalculateSize | |
| name | back to summary |
|---|---|
| private final String name | |
| pipe | back to summary |
|---|---|
| private Pipe<Buffer> pipe | |
| size | back to summary |
|---|---|
| private long size | |
| stream | back to summary |
|---|---|
| private final ReadStream<Buffer> stream | |
| HttpServerFileUploadImpl | back to summary |
|---|---|
| pack-priv HttpServerFileUploadImpl(ContextInternal context, ReadStream<Buffer> stream, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size) | |
| cancelStreamToFileSystem | back to summary |
|---|---|
| public boolean cancelStreamToFileSystem() Implements io. Doc from io. Try to cancel the file system streaming, the streamed file will be deleted.
| |
| charset | back to summary |
|---|---|
| public String charset() Implements io.
| |
| contentTransferEncoding | back to summary |
|---|---|
| public String contentTransferEncoding() Implements io.
| |
| contentType | back to summary |
|---|---|
| public String contentType() Implements io.
| |
| endHandler | back to summary |
|---|---|
| public synchronized HttpServerFileUpload endHandler(Handler<Void> handler) Implements io.
| |
| exceptionHandler | back to summary |
|---|---|
| public synchronized HttpServerFileUpload exceptionHandler(Handler<Throwable> exceptionHandler) Implements io.
| |
| fetch | back to summary |
|---|---|
| public HttpServerFileUpload fetch(long amount) Implements io. Doc from io. Fetch the specified
| |
| file | back to summary |
|---|---|
| public synchronized AsyncFile file() Implements io.
| |
| filename | back to summary |
|---|---|
| public String filename() Implements io.
| |
| handleData | back to summary |
|---|---|
| private void handleData(Buffer data)
References Deprecated
See corresponding docs for further information. | |
| handleEnd | back to summary |
|---|---|
| private void handleEnd() | |
| handleException | back to summary |
|---|---|
| private void handleException(Throwable cause) | |
| handler | back to summary |
|---|---|
| public synchronized HttpServerFileUpload handler(Handler<Buffer> handler) Implements io.
| |
| isSizeAvailable | back to summary |
|---|---|
| public synchronized boolean isSizeAvailable() Implements io.
| |
| name | back to summary |
|---|---|
| public String name() Implements io.
| |
| pause | back to summary |
|---|---|
| public HttpServerFileUpload pause() Implements io. Doc from io. Pause the
While it's paused, no data will be sent to the data
| |
| resume | back to summary |
|---|---|
| public HttpServerFileUpload resume() Implements io. Doc from io. Resume reading, and sets the buffer in
If the
| |
| size | back to summary |
|---|---|
| public synchronized long size() Implements io. Doc from io. The size of the upload may not be available until it is all read.
Check
| |
| streamToFileSystem | back to summary |
|---|---|
| public void streamToFileSystem(String filename, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Stream the content of this upload to the given file on storage. | |
| streamToFileSystem | back to summary |
|---|---|
| public Future Implements io. Doc from io. Stream the content of this upload to the given file on storage. If the stream has a failure or is cancelled the created file will be deleted. | |