Class NettyCompletedAttribute
- java.lang.Object
-
- io.micronaut.http.server.netty.multipart.NettyCompletedAttribute
-
- All Implemented Interfaces:
io.micronaut.http.multipart.CompletedPart,io.micronaut.http.multipart.PartData
@Internal public class NettyCompletedAttribute extends java.lang.Object implements io.micronaut.http.multipart.CompletedPartA delegation of the NettyAttributeto implement theCompletedPartcontract.- Since:
- 1.3.0
-
-
Constructor Summary
Constructors Constructor Description NettyCompletedAttribute(io.netty.handler.codec.http.multipart.Attribute attribute)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffergetByteBuffer()byte[]getBytes()java.util.Optional<io.micronaut.http.MediaType>getContentType()java.io.InputStreamgetInputStream()java.lang.StringgetName()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceio.micronaut.http.multipart.CompletedPart
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Specified by:
getInputStreamin interfaceio.micronaut.http.multipart.PartData- Throws:
java.io.IOException
-
getBytes
public byte[] getBytes() throws java.io.IOException- Specified by:
getBytesin interfaceio.micronaut.http.multipart.PartData- Throws:
java.io.IOException
-
getByteBuffer
public java.nio.ByteBuffer getByteBuffer() throws java.io.IOException- Specified by:
getByteBufferin interfaceio.micronaut.http.multipart.PartData- Throws:
java.io.IOException
-
getContentType
public java.util.Optional<io.micronaut.http.MediaType> getContentType()
- Specified by:
getContentTypein interfaceio.micronaut.http.multipart.PartData
-
-