Annotation Interface Request
Identifies an interface to use to interact with HTTP parts of an HTTP request through a bean.
Can be used in the following locations:
- Arguments and argument-types of server-side @RestOp -annotated methods.
- Arguments and argument-types of client-side @RemoteResource -annotated interfaces.
Arguments and argument-types of server-side @RestOp-annotated methods
 Annotation that can be applied to a parameter of a 
Example:
   
   
 The return types of the getters must be the supported parameter types for the HTTP-part annotation used.
 
Schema-based serialization and parsing is allowed just as if used as individual parameter types.
 
See Also:
Arguments and argument-types of client-side @RemoteResource-annotated interfaces
Annotation applied to Java method arguments of interface proxies to denote a bean with remote resource annotations.
Example:
   
See Also:
See Also:
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionString[]Optional description for the exposed API.String[]Dynamically apply this annotation to the specified classes.Class<?>[]Dynamically apply this annotation to the specified classes.Class<? extends HttpPartParser>Specifies theHttpPartParserclass used for parsing strings to values.Class<? extends HttpPartSerializer>Specifies theHttpPartSerializerclass used for serializing values to strings.
- 
Element Details- 
descriptionOptional description for the exposed API.- Returns:
- The annotation value.
- Since:
- 9.2.0
 - Default:
- {}
 
- 
onDynamically apply this annotation to the specified classes.See Also:- Returns:
- The annotation value.
 - Default:
- {}
 
- 
onClassDynamically apply this annotation to the specified classes.Identical to on()except allows you to specify class objects instead of a strings.See Also:- Returns:
- The annotation value.
 - Default:
- {}
 
- 
parserClass<? extends HttpPartParser> parserSpecifies theHttpPartParserclass used for parsing strings to values.Overrides for this part the part parser defined on the REST resource which by default is OpenApiParser.- Returns:
- The annotation value.
 - Default:
- org.apache.juneau.httppart.HttpPartParser.Void.class
 
- 
serializerClass<? extends HttpPartSerializer> serializerSpecifies theHttpPartSerializerclass used for serializing values to strings.Overrides for this part the part serializer defined on the REST client which by default is OpenApiSerializer.- Returns:
- The annotation value.
 - Default:
- org.apache.juneau.httppart.HttpPartSerializer.Void.class
 
 
-