Class PartImpl
java.lang.Object
io.gatling.http.client.body.multipart.impl.PartImpl
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
FileLikePartImpl,MessageEndPartImpl,StringPartImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final byte[]protected final Part<?> protected PartImplState -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected io.netty.buffer.ByteBufcomputePostContentBytes(int postContentLength) protected intprotected io.netty.buffer.ByteBufcomputePreContentBytes(int preContentLength) protected intprotected abstract voidcopyContentInto(io.netty.buffer.ByteBuf target) voidcopyInto(io.netty.buffer.ByteBuf target) protected abstract longgetState()longlength()protected voidvisitContentDispositionHeader(PartVisitor visitor)
-
Field Details
-
part
-
boundary
protected final byte[] boundary -
state
-
-
Method Details
-
length
public long length() -
getState
-
copyInto
- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getContentLength
protected abstract long getContentLength() -
copyContentInto
- 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
-