public class CoreEncoders
extends java.lang.Object
Generic content encoders for use with all client implementations. Note that there may be client-specific implementations for some of these (see
ApacheEncoders
and OkHttpEncoders
for more information).
See the MultipartContent
class documentation for more configuration details.
Constructor and Description |
---|
CoreEncoders() |
Modifier and Type | Method and Description |
---|---|
static void |
multipart(ChainedHttpConfig config,
ToServer ts)
Encodes multipart/form-data where the body content must be an instance of the
MultipartContent class. |
public static void multipart(ChainedHttpConfig config, ToServer ts)
Encodes multipart/form-data where the body content must be an instance of the MultipartContent
class. Individual parts will be
encoded using the encoders available to the ChainedHttpConfig
object.
config
- the chained configuration objectts
- the server adapter