@Documented @Target(value={PARAMETER,FIELD,METHOD}) @Retention(value=RUNTIME) @Inherited public @interface Body
The argument can be any of the following types:
Serializer
registered with the
RestClient
.
Reader
- Raw contents of Reader
will be serialized to remote resource.
InputStream
- Raw contents of InputStream
will be serialized to remote resource.
HttpEntity
- Bypass Juneau serialization and pass HttpEntity directly to HttpClient.
NameValuePairs
- Converted to a URL-encoded FORM post.
The annotation can also be applied to a bean property field or getter when the argument is annotated with
@RequestBean
:
Copyright © 2018 Apache. All rights reserved.