Class MPRequest


  • public class MPRequest
    extends Object
    MPRequest class.
    • Method Detail

      • buildRequest

        public static MPRequest buildRequest​(String path,
                                             HttpMethod method,
                                             com.google.gson.JsonObject payload,
                                             Map<String,​Object> queryParams,
                                             MPRequestOptions requestOptions)
        Method responsible for build MP request.
        Parameters:
        path - path
        method - method
        payload - payload
        queryParams - queryParams
        requestOptions - requestOptions
        Returns:
        MPRequest
      • createIdempotencyKey

        public String createIdempotencyKey()
        Method responsible for create a new Idempotency key.
        Returns:
        Idempotency key
      • getUri

        public String getUri()
      • getPayload

        public com.google.gson.JsonObject getPayload()
      • getAccessToken

        public String getAccessToken()
      • getConnectionTimeout

        public int getConnectionTimeout()
      • getConnectionRequestTimeout

        public int getConnectionRequestTimeout()
      • getSocketTimeout

        public int getSocketTimeout()