Class 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.CompletedPart
    A delegation of the Netty Attribute to implement the CompletedPart contract.
    Since:
    1.3.0
    • Constructor Summary

      Constructors 
      Constructor Description
      NettyCompletedAttribute​(io.netty.handler.codec.http.multipart.Attribute attribute)  
    • Constructor Detail

      • NettyCompletedAttribute

        public NettyCompletedAttribute​(io.netty.handler.codec.http.multipart.Attribute attribute)
        Parameters:
        attribute - The netty attribute
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface io.micronaut.http.multipart.CompletedPart
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Specified by:
        getInputStream in interface io.micronaut.http.multipart.PartData
        Throws:
        java.io.IOException
      • getBytes

        public byte[] getBytes()
                        throws java.io.IOException
        Specified by:
        getBytes in interface io.micronaut.http.multipart.PartData
        Throws:
        java.io.IOException
      • getByteBuffer

        public java.nio.ByteBuffer getByteBuffer()
                                          throws java.io.IOException
        Specified by:
        getByteBuffer in interface io.micronaut.http.multipart.PartData
        Throws:
        java.io.IOException
      • getContentType

        public java.util.Optional<io.micronaut.http.MediaType> getContentType()
        Specified by:
        getContentType in interface io.micronaut.http.multipart.PartData