Package org.apache.juneau.httppart
Interface HttpPartSerializer
- All Known Subinterfaces:
HttpPartSerializer.Void
- All Known Implementing Classes:
BaseHttpPartSerializer
,OpenApiSerializer
,SimplePartSerializer
,UonSerializer
,UonSerializer.Encoding
,UonSerializer.Readable
,UrlEncodingSerializer
,UrlEncodingSerializer.Expanded
,UrlEncodingSerializer.PlainText
,UrlEncodingSerializer.Readable
public interface HttpPartSerializer
Interface used to convert POJOs to simple strings in HTTP headers, query parameters, form-data parameters, and URI
path variables.
The following default implementations are provided:
OpenApiSerializer
- Parts encoded based on OpenAPI schema.UonSerializer
- Parts encoded in UON notation.SimplePartSerializer
- Parts encoded in plain text.
This class is used in the following locations:
FormData.serializer()
Query.serializer()
Header.serializer()
Path.serializer()
Request.serializer()
Response.serializer()
RestClient.Builder.partSerializer(Class)
Implementations must include either a public no-args constructor.
See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A creator for a part serializer.static interface
Represent "no" part part serializer. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpPartSerializer.Creator
creator()
Instantiates a creator for a part serializer.Creates a new serializer session.
-
Method Details
-
creator
Instantiates a creator for a part serializer.- Returns:
- A new creator.
-
getPartSession
Creates a new serializer session.- Returns:
- A new serializer session.
-