public class FormBody extends HttpBody
| Modifier and Type | Class and Description |
|---|---|
static class |
FormBody.Builder
Represents the builder of
FormBody |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent()
Returns the content as input stream
|
MimeType |
getContentType()
Returns the media type
|
Set<String> |
getNames()
Returns all names in this form
|
List<String> |
getValues(String name)
Returns all of the values associated with the specified name
|
FormBody.Builder |
newBuilder()
Create a builder of
FormBody |
void |
writeTo(OutputStream out)
Write this entity into
out |
getCharset, getCharset, getContentLength, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstancepublic List<String> getValues(String name)
name - public MimeType getContentType()
HttpEntitypublic InputStream getContent() throws IOException
HttpEntityIOExceptionpublic void writeTo(OutputStream out) throws IOException
HttpEntityoutwriteTo in interface HttpEntitywriteTo in class HttpBodyout - The output streamIOException - if write failedpublic FormBody.Builder newBuilder()
FormBodyFormBody.BuilderCopyright © 2015–2017 SDKLite. All rights reserved.