FormParam Interface
Implements
public interface FormParam
implements Annotation
Annotation for form parameters to be sent to a REST API Request URI.
Example:
@Post("spellcheck")
Mono<Response<ResponseBody>> spellChecker(@HeaderParam("X-BingApis-SDK") String xBingApisSDK,
@QueryParam("UserId") String userId,
@FormParam("Text") String text);
The value of parameter text will be encoded and encoded value will be added to the form data sent to the API.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract boolean |
encoded()
Whether the form parameter is already form encoded. |
| abstract String |
value()
Gets the name of the key in a key-value pair as part of the form data. |
Method Details
encoded
public abstract boolean encoded()
Whether the form parameter is already form encoded.
A value true for this argument indicates that value of value() is already encoded hence engine should not encode it, by default value will be encoded.
Returns:
value
public abstract String value()
Gets the name of the key in a key-value pair as part of the form data.
Returns: