Class ContextHelperUtil

java.lang.Object
com.broadleafcommerce.auth.client.service.ContextHelperUtil

public final class ContextHelperUtil extends Object
Utility class to assist with storing and retrieving request parameters from request attributes. Values are set in the ClientIdFilter.
Author:
Cade Rea (cade-rea)
  • Method Details

    • getClientId

      @Nullable public static String getClientId()
      Get the client id request parameter.
      Returns:
      The client_id request parameter.
      See Also:
    • setClientId

      public static void setClientId(String clientId)
      Set the client id of the request.
      Parameters:
      clientId - The client_id request parameter.
      See Also:
    • getAccountId

      public static Optional<String> getAccountId()
      Get the account id request parameter or empty.
      Returns:
      The accountId request parameter or empty.
      See Also:
    • setAccountId

      public static void setAccountId(String accountId)
      Set the account id of the request.
      Parameters:
      accountId - The accountId request parameter.
      See Also: