Module io.inverno.mod.web.client
Annotation Interface PartParam
Binds a Web route method parameter to a body part.
The name of the body part is the method parameter name by default and it can be overridden by specifying the name()
attribute.
The type of the annotated parameter can either be:
ByteBuf
,Mono<ByteBuf>
,Flux<ByteBuf>
orPublisher<ByteBuf>
to produce raw dataString
,Mono<String>
,Flux<String>
orPublisher<String>
to produce string dataT
,Mono<T>
,Flux<T>
orPublisher<T>
to produce data encoded based on the part content type specified in thecontentType()
attribute.Resource
to produce resource data, the part filename is then set to the resource file name by default, this can be overridden by specifying thefilename()
attribute.
An encoded part payload is decoded encoded using one of the MediaTypeConverter
injected in the Web client module and corresponding to the part content type.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
- See Also:
-
Optional Element Summary
-
Element Details
-
name
String nameSpecifies the name of the body part.
- Returns:
- the part name
- Default:
""
-
filename
String filenameSpecifies the body part file name.
- Returns:
- the part file name
- Default:
""
-
contentType
String contentTypeSpecifies the content type of the body part.
- Returns:
- the part content type
- Default:
""
-