Annotation Type 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 Summary
Modifier and TypeOptional ElementDescriptionString[]
Dynamically apply this annotation to the specified classes.Class<?>[]
Dynamically apply this annotation to the specified classes.Class<? extends HttpPartParser>
Specifies theHttpPartParser
class used for parsing strings to values.Class<? extends HttpPartSerializer>
Specifies theHttpPartSerializer
class used for serializing values to strings.
-
Element Details
-
on
Dynamically apply this annotation to the specified classes.See Also:
- Returns:
- The annotation value.
- Default:
- {}
-
onClass
Dynamically 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:
- {}
-
parser
Class<? extends HttpPartParser> parserSpecifies theHttpPartParser
class 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
-
serializer
Class<? extends HttpPartSerializer> serializerSpecifies theHttpPartSerializer
class 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
-