Class ApiResponse

    • Constructor Detail

      • ApiResponse

        public ApiResponse()
    • Method Detail

      • getResultCode

        public String getResultCode()
        Get the code of the result of an Authlete API call.
        Returns:
        The result code. For example, "A004001".
      • setResultCode

        public void setResultCode​(String code)
        Set the code of the result of an Authlete API call.
        Parameters:
        code - The result code.
      • getResultMessage

        public String getResultMessage()
        Get the message of the result of an Authlete API call.
        Returns:
        The result message. For example, "[A001202] /client/get/list, Authorization header is missing."
      • setResultMessage

        public void setResultMessage​(String message)
        Set the message of the result of an Authlete API call.
        Parameters:
        message - The result message.
      • getResponseHeaders

        public Map<String,​List<String>> getResponseHeaders()
        Get the HTTP response headers returned from an Authlete API call.
        Returns:
        A map of HTTP response headers. May be null or empty.
        Since:
        4.23
      • setResponseHeaders

        public void setResponseHeaders​(Map<String,​List<String>> responseHeaders)
        Set the HTTP response headers returned from an Authlete API call.
        Parameters:
        responseHeaders - A map of HTTP response headers where each key is a header name and the corresponding value is a list of header values.
        Since:
        4.23