- Enclosing interface:
RequestBody
public static interface RequestBody.Resource
A resource data producer.
- Since:
- 1.6
- Author:
- Jeremy Kuhn
-
Method Summary
-
Method Details
-
value
Sets the specified resource in the request payload.
This method tries to determine the content type of the specified resource in which case the content type header is set in the request.
- Parameters:
resource
- a resource- Throws:
IllegalStateException
- if data were already sent to the recipient
-