Package com.mercadopago.net
Class MPDefaultHttpClient
- java.lang.Object
-
- com.mercadopago.net.MPDefaultHttpClient
-
- All Implemented Interfaces:
MPHttpClient
public class MPDefaultHttpClient extends Object implements MPHttpClient
Mercado Pago default Http Client class.
-
-
Constructor Summary
Constructors Modifier Constructor Description MPDefaultHttpClient()
MPDefaultHttpClient constructor.protected
MPDefaultHttpClient(org.apache.http.client.HttpClient httpClient)
MPDefaultHttpClient constructor for testing only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MPResponse
send(MPRequest mpRequest)
Method responsible to send a request.
-
-
-
Method Detail
-
send
public MPResponse send(MPRequest mpRequest) throws MPException, MPApiException
Description copied from interface:MPHttpClient
Method responsible to send a request.- Specified by:
send
in interfaceMPHttpClient
- Parameters:
mpRequest
- request- Returns:
- response
- Throws:
MPException
- exceptionMPApiException
-
-