Annotation Interface HttpPartMarshalling
HttpPartSerializer and HttpPartParser to use for serializing/parsing HTTP parts.
Can be applied alongside the HTTP-part parameter annotations
The next-generation org.apache.juneau.rest.client.RestClient remote-proxy engine
(RestClient.remote(Class)) honors the serializer() attribute for outgoing HTTP parts
(query / header / path / form-data), resolving the most-specific declaration: parameter-level overrides
method-level, which overrides interface-level. When absent, the client's default part serializer is used
(behavior is unchanged).
Not currently consumed: the parser() attribute (the next-gen engine has no response-part parsing
path; response bodies are handled by the client Parsers, not part parsers), the request body (Serializer/Parser rather than a part serializer/parser), and the classic
RestClient remote-proxy path (which does not discover this annotation).
Example:
See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<? extends HttpPartParser>Specifies theHttpPartParserclass used for parsing strings to values.Class<? extends HttpPartSerializer>Specifies theHttpPartSerializerclass used for serializing values to strings.
-
Element Details
-
parser
Class<? extends HttpPartParser> parserSpecifies theHttpPartParserclass used for parsing strings to values.- Returns:
- The annotation value.
- Default:
- org.apache.juneau.marshall.httppart.HttpPartParser.Void.class
-
serializer
Class<? extends HttpPartSerializer> serializerSpecifies theHttpPartSerializerclass used for serializing values to strings.- Returns:
- The annotation value.
- Default:
- org.apache.juneau.marshall.httppart.HttpPartSerializer.Void.class
-