Class BaseHttpPartSerializer

java.lang.Object
org.apache.juneau.Context
org.apache.juneau.BeanContextable
org.apache.juneau.httppart.BaseHttpPartSerializer
All Implemented Interfaces:
AnnotationProvider, HttpPartSerializer
Direct Known Subclasses:
SimplePartSerializer

public abstract class BaseHttpPartSerializer extends BeanContextable implements HttpPartSerializer
Base class for implementations of HttpPartSerializer
Notes:
  • This class is thread safe and reusable.
See Also:
  • Constructor Details

  • Method Details

    • serialize

      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.

      Returned values should NOT be URL-encoded.

      Parameters:
      partType - The category of value being serialized.
      schema - Schema information about the part.
      May be null.
      Not all part serializers use the schema information.
      value - The value being serialized.
      Returns:
      The serialized value.
      Throws:
      SerializeException - If a problem occurred while trying to parse the input.
      SchemaValidationException - If the output fails schema validation.