Class AWSRequestHeaders

java.lang.Object
overit.geocallapp.wfm.ai.rs.v1.AWSRequestHeaders

public class AWSRequestHeaders extends Object
Class containing all the possibile headers for AI Api.
Since:
13.0
  • Field Details

    • responseContentType

      protected org.springframework.http.MediaType responseContentType
    • requestAttributes

      protected String requestAttributes
    • deviceType

      protected String deviceType
  • Constructor Details

    • AWSRequestHeaders

      public AWSRequestHeaders(String customerId, String userId, String environment, String appName, String appVersion, String customAttributes, org.springframework.http.MediaType responseContentType, String requestAttributes, String deviceType)
  • Method Details

    • getCustomerId

      public String getCustomerId()
      Unique ID of the client.
      Returns:
    • getUserId

      public String getUserId()
      ID of the logged user that performs the call.
      Returns:
    • getEnvironment

      public String getEnvironment()
      Name of the environment.
      Returns:
    • getAppName

      public String getAppName()
      Name of the application that is performing the call.
      Returns:
    • getAppVersion

      public String getAppVersion()
      Application version.
      Returns:
    • getCustomAttributes

      public String getCustomAttributes()
      Custom attributes that have to be a JSON string encoded to Base64
      Returns:
    • getRequestAttributes

      public String getRequestAttributes()
      It's a map of string coded in base64. They represent specific attributes of the current call to be sent to the VA
      Returns:
    • getResponseContentType

      public org.springframework.http.MediaType getResponseContentType()
      The message that Virtual assistant returns in the response can be either text or speech based on the responseContentType value.NOTE: audio response will be given only on audio input request
      Returns:
    • getDeviceType

      public String getDeviceType()
    • buildValues

      public Map<String,String> buildValues()