public interface HttpPartSerializerSession
HttpPartSerializer
.
This class is NOT thread safe. It is typically discarded after one-time use although it can be reused within the same thread.
Modifier and Type | Method and Description |
---|---|
String |
serialize(HttpPartSchema schema,
Object value)
Same as
serialize(HttpPartType, HttpPartSchema, Object) but defaults to a |
String |
serialize(HttpPartType type,
HttpPartSchema schema,
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.
|
String serialize(HttpPartType type, HttpPartSchema schema, Object value) throws SerializeException, SchemaValidationException
Returned values should NOT be URL-encoded.
type
- The category of value being serialized.schema
- Schema information about the part.
value
- The value being serialized.SerializeException
- If a problem occurred while trying to parse the input.SchemaValidationException
- If the output fails schema validation.String serialize(HttpPartSchema schema, Object value) throws SerializeException, SchemaValidationException
serialize(HttpPartType, HttpPartSchema, Object)
but defaults to a schema
- Schema information about the part.
value
- The value being serialized.SerializeException
- If a problem occurred while trying to parse the input.SchemaValidationException
- If the output fails schema validation.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.