Top Fields Constructors Methods
io.vertx.core.http.impl

pack-priv Class NettyFileUploadDataFactory

extends DefaultHttpDataFactory
Class Inheritance
Imports
io.netty.handler.codec.http.HttpRequest, io.netty.handler.codec.http.multipart.DefaultHttpDataFactory, .FileUpload, io.vertx.core.Handler, io.vertx.core.http.HttpServerFileUpload, .HttpServerRequest, io.vertx.core.impl.ContextInternal, java.nio.charset.Charset, java.util.function.Supplier

Author
Julien Viet

Field Summary

Modifier and TypeField and Description
private final ContextInternal
private final Supplier<Handler<HttpServerFileUpload>>
private final HttpServerRequest
Inherited from io.netty.handler.codec.http.multipart.DefaultHttpDataFactory:
MAXSIZEMINSIZE

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public FileUpload
createFileUpload(HttpRequest
associated request
httpRequest
,
String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long
the size of the Uploaded file
size
)

Overrides io.netty.handler.codec.http.multipart.DefaultHttpDataFactory.createFileUpload.

Implements io.netty.handler.codec.http.multipart.HttpDataFactory.createFileUpload.

Inherited from io.netty.handler.codec.http.multipart.DefaultHttpDataFactory:
cleanAllHttpDatacleanAllHttpDatascleanRequestHttpDatacleanRequestHttpDatascreateAttributecreateAttributecreateAttributeremoveHttpDataFromCleansetBaseDirsetDeleteOnExitsetMaxLimit

Field Detail

contextback to summary
private final ContextInternal context
lazyUploadHandlerback to summary
private final Supplier<Handler<HttpServerFileUpload>> lazyUploadHandler
requestback to summary
private final HttpServerRequest request

Constructor Detail

NettyFileUploadDataFactoryback to summary
pack-priv NettyFileUploadDataFactory(ContextInternal context, HttpServerRequest request, Supplier<Handler<HttpServerFileUpload>> lazyUploadHandler)

Method Detail

createFileUploadback to summary
public FileUpload createFileUpload(HttpRequest httpRequest, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size)

Overrides io.netty.handler.codec.http.multipart.DefaultHttpDataFactory.createFileUpload.

Implements io.netty.handler.codec.http.multipart.HttpDataFactory.createFileUpload.

Parameters
httpRequest:HttpRequest

Doc from io.netty.handler.codec.http.multipart.HttpDataFactory.createFileUpload.

associated request

size:long

Doc from io.netty.handler.codec.http.multipart.HttpDataFactory.createFileUpload.

the size of the Uploaded file

Returns:FileUpload

Doc from io.netty.handler.codec.http.multipart.HttpDataFactory.createFileUpload.

a new FileUpload

Annotations
@Override