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
ConstructorDescriptionNettyCompletedAttribute
(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:
getName
in interfaceCompletedPart
- Returns:
- The name of the part
-
getInputStream
Description copied from interface:PartData
Gets the content of this chunk as anInputStream
.- Specified by:
getInputStream
in 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:PartData
Gets the content of this chunk as abyte[]
.- Specified by:
getBytes
in 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:PartData
Gets the content of this chunk as aByteBuffer
.- Specified by:
getByteBuffer
in 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:PartData
Gets the content type of this chunk.- Specified by:
getContentType
in interfacePartData
- Returns:
- The content type of this chunk.
-