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 voidclose()protected io.netty.buffer.ByteBufcomputePostContentBytes(int postContentLength)protected intcomputePostContentLength()protected io.netty.buffer.ByteBufcomputePreContentBytes(int preContentLength)protected intcomputePreContentLength()protected longgetContentLength()protected longtransferContentTo(io.netty.buffer.ByteBuf target)protected longtransferContentTo(WritableByteChannel target)longtransferTo(io.netty.buffer.ByteBuf target)longtransferTo(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:
transferToin classMultipartPart<FileLikePart>
-
transferTo
public long transferTo(WritableByteChannel target) throws IOException
- Overrides:
transferToin classMultipartPart<FileLikePart>- Throws:
IOException
-
computePreContentLength
protected int computePreContentLength()
- Overrides:
computePreContentLengthin classMultipartPart<FileLikePart>
-
computePreContentBytes
protected io.netty.buffer.ByteBuf computePreContentBytes(int preContentLength)
- Overrides:
computePreContentBytesin classMultipartPart<FileLikePart>
-
computePostContentLength
protected int computePostContentLength()
- Overrides:
computePostContentLengthin classMultipartPart<FileLikePart>
-
computePostContentBytes
protected io.netty.buffer.ByteBuf computePostContentBytes(int postContentLength)
- Overrides:
computePostContentBytesin classMultipartPart<FileLikePart>
-
getContentLength
protected long getContentLength()
- Specified by:
getContentLengthin classMultipartPart<FileLikePart>
-
transferContentTo
protected long transferContentTo(io.netty.buffer.ByteBuf target)
- Specified by:
transferContentToin classMultipartPart<FileLikePart>
-
transferContentTo
protected long transferContentTo(WritableByteChannel target)
- Specified by:
transferContentToin classMultipartPart<FileLikePart>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classMultipartPart<FileLikePart>
-
-