HttpEntity instances.
Several setter methods of this builder are mutually exclusive. In case of multiple invocations of the following methods only the last one will have effect:
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private boolean | |
| private String | |
| private ContentType | |
| private File | |
| private boolean | |
| private List | |
| private Serializable | |
| private InputStream | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public HttpEntity | |
| public EntityBuilder | |
| private void | |
| public static EntityBuilder | |
| public byte[] | |
| public String | |
| private ContentType | |
| public ContentType | |
| public File | |
| public List | getParameters()
Returns entity content as a parameter list if set using
|
| public Serializable | getSerializable()
Returns entity content as a |
| public InputStream | getStream()
Returns entity content as a |
| public String | |
| public EntityBuilder | |
| public boolean | |
| public boolean | |
| public EntityBuilder | |
| public EntityBuilder | |
| public EntityBuilder | |
| public EntityBuilder | |
| public EntityBuilder | |
| public EntityBuilder | |
| public EntityBuilder | |
| public EntityBuilder | |
| public EntityBuilder |
| binary | back to summary |
|---|---|
| private byte[] binary | |
| chunked | back to summary |
|---|---|
| private boolean chunked | |
| contentEncoding | back to summary |
|---|---|
| private String contentEncoding | |
| contentType | back to summary |
|---|---|
| private ContentType contentType | |
| file | back to summary |
|---|---|
| private File file | |
| gzipCompress | back to summary |
|---|---|
| private boolean gzipCompress | |
| parameters | back to summary |
|---|---|
| private List<NameValuePair> parameters | |
| serializable | back to summary |
|---|---|
| private Serializable serializable | |
| stream | back to summary |
|---|---|
| private InputStream stream | |
| text | back to summary |
|---|---|
| private String text | |
| EntityBuilder | back to summary |
|---|---|
| pack-priv EntityBuilder() | |
| build | back to summary |
|---|---|
| public HttpEntity build() Creates new instance of | |
| chunked | back to summary |
|---|---|
| public EntityBuilder chunked() Makes entity chunk coded. | |
| clearContent | back to summary |
|---|---|
| private void clearContent() | |
| create | back to summary |
|---|---|
| public static EntityBuilder create() | |
| getBinary | back to summary |
|---|---|
| public byte[] getBinary() Returns entity content as a byte array if set using
| |
| getContentEncoding | back to summary |
|---|---|
| public String getContentEncoding() Returns content encoding of the entity, if set. | |
| getContentOrDefault | back to summary |
|---|---|
| private ContentType getContentOrDefault(final ContentType def) | |
| getContentType | back to summary |
|---|---|
| public ContentType getContentType() Returns | |
| getFile | back to summary |
|---|---|
| public File getFile() Returns entity content as a | |
| getParameters | back to summary |
|---|---|
| public List Returns entity content as a parameter list if set using
| |
| getSerializable | back to summary |
|---|---|
| public Serializable getSerializable() Returns entity content as a | |
| getStream | back to summary |
|---|---|
| public InputStream getStream() Returns entity content as a | |
| getText | back to summary |
|---|---|
| public String getText() Returns entity content as a string if set using | |
| gzipCompress | back to summary |
|---|---|
| public EntityBuilder gzipCompress() Makes entity GZIP compressed. | |
| isChunked | back to summary |
|---|---|
| public boolean isChunked() Returns | |
| isGzipCompress | back to summary |
|---|---|
| public boolean isGzipCompress() Returns | |
| setBinary | back to summary |
|---|---|
| public EntityBuilder setBinary(final byte[] binary) Sets entity content as a byte array. This method is mutually exclusive with: | |
| setContentEncoding | back to summary |
|---|---|
| public EntityBuilder setContentEncoding(final String contentEncoding) Sets content encoding of the entity. | |
| setContentType | back to summary |
|---|---|
| public EntityBuilder setContentType(final ContentType contentType) Sets | |
| setFile | back to summary |
|---|---|
| public EntityBuilder setFile(final File file) Sets entity content as a | |
| setParameters | back to summary |
|---|---|
| public EntityBuilder setParameters(final List<NameValuePair> parameters) Sets entity content as a parameter list. This method is mutually exclusive with: | |
| setParameters | back to summary |
|---|---|
| public EntityBuilder setParameters(final NameValuePair... parameters) Sets entity content as a parameter list. This method is mutually exclusive with: | |
| setSerializable | back to summary |
|---|---|
| public EntityBuilder setSerializable(final Serializable serializable) Sets entity content as a | |
| setStream | back to summary |
|---|---|
| public EntityBuilder setStream(final InputStream stream) Sets entity content as a | |
| setText | back to summary |
|---|---|
| public EntityBuilder setText(final String text) Sets entity content as a string. This method is mutually exclusive with: | |