Package com.mercadopago.net
Class MPRequest
- java.lang.Object
-
- com.mercadopago.net.MPRequest
-
public class MPRequest extends Object
MPRequest class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MPRequest.MPRequestBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MPRequest.MPRequestBuilder
builder()
static MPRequest
buildRequest(String path, HttpMethod method, com.google.gson.JsonObject payload, Map<String,Object> queryParams, MPRequestOptions requestOptions)
Method responsible for build MP request.String
createIdempotencyKey()
Method responsible for create a new Idempotency key.String
getAccessToken()
int
getConnectionRequestTimeout()
int
getConnectionTimeout()
Map<String,String>
getHeaders()
HttpMethod
getMethod()
com.google.gson.JsonObject
getPayload()
Map<String,Object>
getQueryParams()
int
getSocketTimeout()
String
getUri()
-
-
-
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
- pathmethod
- methodpayload
- payloadqueryParams
- queryParamsrequestOptions
- requestOptions- Returns:
- MPRequest
-
createIdempotencyKey
public String createIdempotencyKey()
Method responsible for create a new Idempotency key.- Returns:
- Idempotency key
-
builder
public static MPRequest.MPRequestBuilder builder()
-
getUri
public String getUri()
-
getMethod
public HttpMethod getMethod()
-
getPayload
public com.google.gson.JsonObject getPayload()
-
getAccessToken
public String getAccessToken()
-
getConnectionTimeout
public int getConnectionTimeout()
-
getConnectionRequestTimeout
public int getConnectionRequestTimeout()
-
getSocketTimeout
public int getSocketTimeout()
-
-