@Internal
public class NettyCompletedAttribute
extends java.lang.Object
implements io.micronaut.http.multipart.CompletedPart
Attribute to implement
the CompletedPart contract.| Constructor and Description |
|---|
NettyCompletedAttribute(io.netty.handler.codec.http.multipart.Attribute attribute) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
getByteBuffer() |
byte[] |
getBytes() |
java.util.Optional<io.micronaut.http.MediaType> |
getContentType() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getName() |
public NettyCompletedAttribute(io.netty.handler.codec.http.multipart.Attribute attribute)
attribute - The netty attributepublic java.lang.String getName()
getName in interface io.micronaut.http.multipart.CompletedPartpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface io.micronaut.http.multipart.PartDatajava.io.IOExceptionpublic byte[] getBytes()
throws java.io.IOException
getBytes in interface io.micronaut.http.multipart.PartDatajava.io.IOExceptionpublic java.nio.ByteBuffer getByteBuffer()
throws java.io.IOException
getByteBuffer in interface io.micronaut.http.multipart.PartDatajava.io.IOExceptionpublic java.util.Optional<io.micronaut.http.MediaType> getContentType()
getContentType in interface io.micronaut.http.multipart.PartData