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 classMPRequest.MPRequestBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MPRequest.MPRequestBuilderbuilder()static MPRequestbuildRequest(String path, HttpMethod method, com.google.gson.JsonObject payload, Map<String,Object> queryParams, MPRequestOptions requestOptions)Method responsible for build MP request.StringcreateIdempotencyKey()Method responsible for create a new Idempotency key.StringgetAccessToken()intgetConnectionRequestTimeout()intgetConnectionTimeout()Map<String,String>getHeaders()HttpMethodgetMethod()com.google.gson.JsonObjectgetPayload()Map<String,Object>getQueryParams()intgetSocketTimeout()StringgetUri()
-
-
-
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()
-
-