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 Object implements io.micronaut.http.multipart.CompletedPart
A delegation of the Netty Attribute to implement the CompletedPart contract.
Since:
1.3.0
  • Constructor Details

    • NettyCompletedAttribute

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

    • getName

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

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

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

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

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