Class StringMultipartPart
- java.lang.Object
-
- org.asynchttpclient.request.body.multipart.part.MultipartPart<StringPart>
-
- org.asynchttpclient.request.body.multipart.part.StringMultipartPart
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class StringMultipartPart extends MultipartPart<StringPart>
-
-
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 StringMultipartPart(StringPart part, byte[] boundary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected longgetContentLength()protected longtransferContentTo(io.netty.buffer.ByteBuf target)protected longtransferContentTo(WritableByteChannel target)-
Methods inherited from class org.asynchttpclient.request.body.multipart.part.MultipartPart
computePostContentBytes, computePostContentLength, computePreContentBytes, computePreContentLength, getState, isTargetSlow, length, transfer, transfer, transferTo, transferTo, visitContentIdHeader, visitContentTypeHeader, visitCustomHeaders, visitDispositionHeader, visitEndOfHeaders, visitPostContent, visitPreContent, visitStart, visitTransferEncodingHeader
-
-
-
-
Constructor Detail
-
StringMultipartPart
public StringMultipartPart(StringPart part, byte[] boundary)
-
-
Method Detail
-
getContentLength
protected long getContentLength()
- Specified by:
getContentLengthin classMultipartPart<StringPart>
-
transferContentTo
protected long transferContentTo(io.netty.buffer.ByteBuf target)
- Specified by:
transferContentToin classMultipartPart<StringPart>
-
transferContentTo
protected long transferContentTo(WritableByteChannel target) throws IOException
- Specified by:
transferContentToin classMultipartPart<StringPart>- Throws:
IOException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classMultipartPart<StringPart>
-
-