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 void
close()
protected long
getContentLength()
protected long
transferContentTo(io.netty.buffer.ByteBuf target)
protected long
transferContentTo(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:
getContentLength
in classMultipartPart<StringPart>
-
transferContentTo
protected long transferContentTo(io.netty.buffer.ByteBuf target)
- Specified by:
transferContentTo
in classMultipartPart<StringPart>
-
transferContentTo
protected long transferContentTo(WritableByteChannel target) throws IOException
- Specified by:
transferContentTo
in classMultipartPart<StringPart>
- Throws:
IOException
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classMultipartPart<StringPart>
-
-