Class NettyCompletedAttribute
java.lang.Object
io.micronaut.http.server.netty.multipart.NettyCompletedAttribute
- All Implemented Interfaces:
CompletedPart,PartData
A delegation of the Netty
Attribute to implement
the CompletedPart contract.- Since:
- 1.3.0
- Author:
- James Kleeh
-
Constructor Summary
ConstructorsConstructorDescriptionNettyCompletedAttribute(io.netty.handler.codec.http.multipart.Attribute attribute) -
Method Summary
-
Constructor Details
-
NettyCompletedAttribute
public NettyCompletedAttribute(io.netty.handler.codec.http.multipart.Attribute attribute) - Parameters:
attribute- The netty attribute
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceCompletedPart- Returns:
- The name of the part
-
getInputStream
Description copied from interface:PartDataGets the content of this chunk as anInputStream.- Specified by:
getInputStreamin interfacePartData- Returns:
- The content of this chunk as an
InputStream - Throws:
IOException- If an error occurs in retrieving the content
-
getBytes
Description copied from interface:PartDataGets the content of this chunk as abyte[].- Specified by:
getBytesin interfacePartData- Returns:
- The content of this chunk as a
byte[] - Throws:
IOException- If an error occurs in retrieving the content
-
getByteBuffer
Description copied from interface:PartDataGets the content of this chunk as aByteBuffer.- Specified by:
getByteBufferin interfacePartData- Returns:
- The content of this chunk as a
ByteBuffer - Throws:
IOException- If an error occurs in retrieving the content
-
getContentType
Description copied from interface:PartDataGets the content type of this chunk.- Specified by:
getContentTypein interfacePartData- Returns:
- The content type of this chunk.
-