-
public final class CustomParametersRepresents custom parameters that can be used to customize and enhance Composer requests.
The
CustomParametersclass allows you to set custom parameters in three categories: content, user, and request. These custom parameters can be used to tailor Composer requests and influence the behavior of the responses.
-
-
Constructor Summary
Constructors Constructor Description CustomParameters()
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>getContent()final <ERROR CLASS>getUser()final <ERROR CLASS>getRequest()final BooleanisEmpty()Checks whether the custom parameters are empty. final CustomParameterscontent(String key, String value)Adds a custom parameter to the content category. final CustomParametersuser(String key, String value)Adds a custom parameter to the user category. final CustomParametersrequest(String key, String value)Adds a custom parameter to the request category. -
-
Method Detail
-
getContent
final <ERROR CLASS> getContent()
-
getUser
final <ERROR CLASS> getUser()
-
getRequest
final <ERROR CLASS> getRequest()
-
content
final CustomParameters content(String key, String value)
Adds a custom parameter to the content category.
- Parameters:
key- The key of the custom parameter.value- The value of the custom parameter.
-
user
final CustomParameters user(String key, String value)
Adds a custom parameter to the user category.
- Parameters:
key- The key of the custom parameter.value- The value of the custom parameter.
-
request
final CustomParameters request(String key, String value)
Adds a custom parameter to the request category.
- Parameters:
key- The key of the custom parameter.value- The value of the custom parameter.
-
-
-
-