public class SimplePartSerializer extends Object implements HttpPartSerializer
HttpPartSerializer
that simply serializes everything using Object.toString()
.
More precisely, uses the ClassUtils.toString(Object)
method to stringify objects.
HttpPartSerializer.Null
Modifier and Type | Field and Description |
---|---|
static SimplePartSerializer |
DEFAULT
Reusable instance of
SimplePartSerializer , all default settings. |
Constructor and Description |
---|
SimplePartSerializer() |
Modifier and Type | Method and Description |
---|---|
String |
serialize(HttpPartType type,
Object value)
Converts the specified value to a string that can be used as an HTTP header value, query parameter value,
form-data parameter, or URI path variable.
|
public static final SimplePartSerializer DEFAULT
SimplePartSerializer
, all default settings.public SimplePartSerializer()
public String serialize(HttpPartType type, Object value)
HttpPartSerializer
Returned values should NOT be URL-encoded.
serialize
in interface HttpPartSerializer
type
- The category of value being serialized.value
- The value being serialized.Copyright © 2018 Apache. All rights reserved.