java.lang.Object
io.gatling.http.client.body.multipart.impl.PartImpl
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
FileLikePartImpl, MessageEndPartImpl, StringPartImpl

public abstract class PartImpl extends Object implements Closeable
  • Field Details

    • part

      protected final Part<?> part
    • boundary

      protected final byte[] boundary
    • state

      protected PartImplState state
  • Method Details

    • length

      public long length()
    • getState

      public PartImplState getState()
    • copyInto

      public void copyInto(io.netty.buffer.ByteBuf target) throws IOException
      Throws:
      IOException
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • getContentLength

      protected abstract long getContentLength()
    • copyContentInto

      protected abstract void copyContentInto(io.netty.buffer.ByteBuf target) throws IOException
      Throws:
      IOException
    • computePreContentLength

      protected int computePreContentLength()
    • computePreContentBytes

      protected io.netty.buffer.ByteBuf computePreContentBytes(int preContentLength)
    • computePostContentLength

      protected int computePostContentLength()
    • computePostContentBytes

      protected io.netty.buffer.ByteBuf computePostContentBytes(int postContentLength)
    • visitContentDispositionHeader

      protected void visitContentDispositionHeader(PartVisitor visitor)