public abstract class BaseHttpPartSerializer extends Object implements HttpPartSerializer
HttpPartSerializer
HttpPartSerializer.Null
Constructor and Description |
---|
BaseHttpPartSerializer() |
Modifier and Type | Method and Description |
---|---|
String |
serialize(HttpPartType partType,
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createPartSession
public BaseHttpPartSerializer()
public String serialize(HttpPartType partType, HttpPartSchema schema, Object value) throws SchemaValidationException, SerializeException
Returned values should NOT be URL-encoded.
partType
- 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.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.