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 TypeMethodDescriptionvoid
close()
protected io.netty.buffer.ByteBuf
computePostContentBytes
(int postContentLength) protected int
protected io.netty.buffer.ByteBuf
computePreContentBytes
(int preContentLength) protected int
protected abstract void
copyContentInto
(io.netty.buffer.ByteBuf target) void
copyInto
(io.netty.buffer.ByteBuf target) protected abstract long
getState()
long
length()
protected void
visitContentDispositionHeader
(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:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-