Class NettyPartData
java.lang.Object
io.micronaut.http.server.netty.multipart.NettyPartData
- All Implemented Interfaces:
io.micronaut.http.multipart.PartData
A Netty implementation of
PartData.- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionNettyPartData(Supplier<Optional<io.micronaut.http.MediaType>> mediaTypeSupplier, Supplier<io.netty.buffer.ByteBuf> byteBufSupplier) -
Method Summary
-
Constructor Details
-
Method Details
-
getInputStream
The contents of the chunk will be released when the stream is closed.- Specified by:
getInputStreamin interfaceio.micronaut.http.multipart.PartData- Throws:
IOException- See Also:
-
PartData.getInputStream()
-
getBytes
The contents of the chunk are released immediately.- Specified by:
getBytesin interfaceio.micronaut.http.multipart.PartData- Throws:
IOException- See Also:
-
PartData.getBytes()
-
getByteBuffer
The contents of the chunk are released immediately.- Specified by:
getByteBufferin interfaceio.micronaut.http.multipart.PartData- Throws:
IOException- See Also:
-
PartData.getByteBuffer()
-
getContentType
- Specified by:
getContentTypein interfaceio.micronaut.http.multipart.PartData- See Also:
-
PartData.getContentType()
-
getByteBuf
public io.netty.buffer.ByteBuf getByteBuf()- Returns:
- The native netty
ByteBuffor this chunk
-