public class StringBody extends AbstractContentBody
MultipartEntityBuilder| Constructor and Description |
|---|
StringBody(String text,
org.apache.hc.core5.http.ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength()
Returns the body descriptors content-length.
|
String |
getFilename() |
Reader |
getReader() |
void |
writeTo(OutputStream out) |
getCharset, getContentType, getMediaType, getMimeType, getSubTypepublic StringBody(String text, org.apache.hc.core5.http.ContentType contentType)
public Reader getReader()
public void writeTo(OutputStream out) throws IOException
IOExceptionpublic long getContentLength()
ContentDescriptorpublic String getFilename()
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.