Package io.micronaut.http.server.netty
Class MicronautHttpData.Factory
java.lang.Object
io.micronaut.http.server.netty.MicronautHttpData.Factory
- All Implemented Interfaces:
io.netty.handler.codec.http.multipart.HttpDataFactory
- Enclosing class:
- MicronautHttpData<D extends io.netty.handler.codec.http.multipart.HttpData>
@Internal
public static final class MicronautHttpData.Factory
extends Object
implements io.netty.handler.codec.http.multipart.HttpDataFactory
Factory for
MicronautHttpData
instances. Immutable, only some operations are
supported.-
Constructor Summary
ConstructorDescriptionFactory
(HttpServerConfiguration.MultipartConfiguration multipartConfiguration, Charset characterEncoding) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
cleanRequestHttpData
(io.netty.handler.codec.http.HttpRequest request) void
cleanRequestHttpDatas
(io.netty.handler.codec.http.HttpRequest request) io.netty.handler.codec.http.multipart.Attribute
createAttribute
(io.netty.handler.codec.http.HttpRequest request, String name) io.netty.handler.codec.http.multipart.Attribute
createAttribute
(io.netty.handler.codec.http.HttpRequest request, String name, long definedSize) io.netty.handler.codec.http.multipart.Attribute
createAttribute
(io.netty.handler.codec.http.HttpRequest request, String name, String value) io.micronaut.http.server.netty.MicronautHttpData.AttributeImpl
createAttribute
(String name) io.netty.handler.codec.http.multipart.FileUpload
createFileUpload
(io.netty.handler.codec.http.HttpRequest request, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size) void
removeHttpDataFromClean
(io.netty.handler.codec.http.HttpRequest request, io.netty.handler.codec.http.multipart.InterfaceHttpData data) void
setMaxLimit
(long max)
-
Constructor Details
-
Factory
public Factory(HttpServerConfiguration.MultipartConfiguration multipartConfiguration, Charset characterEncoding)
-
-
Method Details
-
setMaxLimit
public void setMaxLimit(long max) - Specified by:
setMaxLimit
in interfaceio.netty.handler.codec.http.multipart.HttpDataFactory
-
createAttribute
-
createAttribute
public io.netty.handler.codec.http.multipart.Attribute createAttribute(io.netty.handler.codec.http.HttpRequest request, String name) - Specified by:
createAttribute
in interfaceio.netty.handler.codec.http.multipart.HttpDataFactory
-
createAttribute
public io.netty.handler.codec.http.multipart.Attribute createAttribute(io.netty.handler.codec.http.HttpRequest request, String name, long definedSize) - Specified by:
createAttribute
in interfaceio.netty.handler.codec.http.multipart.HttpDataFactory
-
createAttribute
public io.netty.handler.codec.http.multipart.Attribute createAttribute(io.netty.handler.codec.http.HttpRequest request, String name, String value) - Specified by:
createAttribute
in interfaceio.netty.handler.codec.http.multipart.HttpDataFactory
-
createFileUpload
public io.netty.handler.codec.http.multipart.FileUpload createFileUpload(io.netty.handler.codec.http.HttpRequest request, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size) - Specified by:
createFileUpload
in interfaceio.netty.handler.codec.http.multipart.HttpDataFactory
-
removeHttpDataFromClean
public void removeHttpDataFromClean(io.netty.handler.codec.http.HttpRequest request, io.netty.handler.codec.http.multipart.InterfaceHttpData data) - Specified by:
removeHttpDataFromClean
in interfaceio.netty.handler.codec.http.multipart.HttpDataFactory
-
cleanRequestHttpData
public void cleanRequestHttpData(io.netty.handler.codec.http.HttpRequest request) - Specified by:
cleanRequestHttpData
in interfaceio.netty.handler.codec.http.multipart.HttpDataFactory
-
cleanAllHttpData
public void cleanAllHttpData()- Specified by:
cleanAllHttpData
in interfaceio.netty.handler.codec.http.multipart.HttpDataFactory
-
cleanRequestHttpDatas
public void cleanRequestHttpDatas(io.netty.handler.codec.http.HttpRequest request) - Specified by:
cleanRequestHttpDatas
in interfaceio.netty.handler.codec.http.multipart.HttpDataFactory
-
cleanAllHttpDatas
public void cleanAllHttpDatas()- Specified by:
cleanAllHttpDatas
in interfaceio.netty.handler.codec.http.multipart.HttpDataFactory
-