Class MessageEndMultipartPart
- java.lang.Object
-
- org.asynchttpclient.request.body.multipart.part.MultipartPart<FileLikePart>
-
- org.asynchttpclient.request.body.multipart.part.MessageEndMultipartPart
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class MessageEndMultipartPart extends MultipartPart<FileLikePart>
-
-
Field Summary
-
Fields inherited from class org.asynchttpclient.request.body.multipart.part.MultipartPart
boundary, CRLF_BYTES, EXTRA_BYTES, part, state
-
-
Constructor Summary
Constructors Constructor Description MessageEndMultipartPart(byte[] boundary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected io.netty.buffer.ByteBuf
computePostContentBytes(int postContentLength)
protected int
computePostContentLength()
protected io.netty.buffer.ByteBuf
computePreContentBytes(int preContentLength)
protected int
computePreContentLength()
protected long
getContentLength()
protected long
transferContentTo(io.netty.buffer.ByteBuf target)
protected long
transferContentTo(WritableByteChannel target)
long
transferTo(io.netty.buffer.ByteBuf target)
long
transferTo(WritableByteChannel target)
-
Methods inherited from class org.asynchttpclient.request.body.multipart.part.MultipartPart
getState, isTargetSlow, length, transfer, transfer, visitContentIdHeader, visitContentTypeHeader, visitCustomHeaders, visitDispositionHeader, visitEndOfHeaders, visitPostContent, visitPreContent, visitStart, visitTransferEncodingHeader
-
-
-
-
Method Detail
-
transferTo
public long transferTo(io.netty.buffer.ByteBuf target)
- Overrides:
transferTo
in classMultipartPart<FileLikePart>
-
transferTo
public long transferTo(WritableByteChannel target) throws IOException
- Overrides:
transferTo
in classMultipartPart<FileLikePart>
- Throws:
IOException
-
computePreContentLength
protected int computePreContentLength()
- Overrides:
computePreContentLength
in classMultipartPart<FileLikePart>
-
computePreContentBytes
protected io.netty.buffer.ByteBuf computePreContentBytes(int preContentLength)
- Overrides:
computePreContentBytes
in classMultipartPart<FileLikePart>
-
computePostContentLength
protected int computePostContentLength()
- Overrides:
computePostContentLength
in classMultipartPart<FileLikePart>
-
computePostContentBytes
protected io.netty.buffer.ByteBuf computePostContentBytes(int postContentLength)
- Overrides:
computePostContentBytes
in classMultipartPart<FileLikePart>
-
getContentLength
protected long getContentLength()
- Specified by:
getContentLength
in classMultipartPart<FileLikePart>
-
transferContentTo
protected long transferContentTo(io.netty.buffer.ByteBuf target)
- Specified by:
transferContentTo
in classMultipartPart<FileLikePart>
-
transferContentTo
protected long transferContentTo(WritableByteChannel target)
- Specified by:
transferContentTo
in classMultipartPart<FileLikePart>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classMultipartPart<FileLikePart>
-
-