Package 

Class CustomParameters


  • 
    public final class CustomParameters
    
                        

    Represents custom parameters that can be used to customize and enhance Composer requests.

    The CustomParameters class 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.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final <ERROR CLASS> content
      private final <ERROR CLASS> user
      private final <ERROR CLASS> request
    • Constructor Detail

      • CustomParameters

        CustomParameters()
    • Method Detail

      • getUser

         final <ERROR CLASS> getUser()
      • isEmpty

         final Boolean isEmpty()

        Checks whether the custom parameters are empty.

      • 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.