Package com.mercadopago
Class MercadoPagoConfig
- java.lang.Object
-
- com.mercadopago.MercadoPagoConfig
-
public class MercadoPagoConfig extends Object
Mercado Pago configuration class.
-
-
Field Summary
Fields Modifier and Type Field Description static String
BASE_URL
static String
CURRENT_VERSION
static String
PRODUCT_ID
static String
TRACKING_ID
-
Constructor Summary
Constructors Constructor Description MercadoPagoConfig()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getAccessToken()
static int
getConnectionRequestTimeout()
static int
getConnectionTimeout()
static String
getCorporationId()
static MPHttpClient
getHttpClient()
Verifies which http client use.static String
getIntegratorId()
static String
getJavaVersion()
Method responsible for return Java version.static StreamHandler
getLoggingHandler()
static Level
getLoggingLevel()
static int
getMaxConnections()
static String
getMetricsScope()
static String
getPlatformId()
static org.apache.http.HttpHost
getProxy()
static org.apache.http.client.HttpRequestRetryHandler
getRetryHandler()
static int
getSocketTimeout()
static StreamHandler
getStreamHandler()
Method responsible for return StreamHandler.static void
setAccessToken(String accessToken)
static void
setConnectionRequestTimeout(int connectionRequestTimeout)
static void
setConnectionTimeout(int connectionTimeout)
static void
setCorporationId(String corporationId)
static void
setHttpClient(MPHttpClient httpClient)
static void
setIntegratorId(String integratorId)
static void
setLoggingHandler(StreamHandler loggingHandler)
static void
setLoggingLevel(Level loggingLevel)
static void
setMaxConnections(int maxConnections)
static void
setMetricsScope(String metricsScope)
static void
setPlatformId(String platformId)
static void
setProxy(org.apache.http.HttpHost proxy)
static void
setRetryHandler(org.apache.http.client.HttpRequestRetryHandler retryHandler)
static void
setSocketTimeout(int socketTimeout)
-
-
-
Field Detail
-
CURRENT_VERSION
public static final String CURRENT_VERSION
- See Also:
- Constant Field Values
-
PRODUCT_ID
public static final String PRODUCT_ID
- See Also:
- Constant Field Values
-
TRACKING_ID
public static final String TRACKING_ID
-
BASE_URL
public static final String BASE_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHttpClient
public static MPHttpClient getHttpClient()
Verifies which http client use.- Returns:
- MPHttpClient
-
getJavaVersion
public static String getJavaVersion()
Method responsible for return Java version.- Returns:
- java version
-
getStreamHandler
public static StreamHandler getStreamHandler()
Method responsible for return StreamHandler.- Returns:
- StreamHandler
-
getAccessToken
public static String getAccessToken()
-
setAccessToken
public static void setAccessToken(String accessToken)
-
getPlatformId
public static String getPlatformId()
-
setPlatformId
public static void setPlatformId(String platformId)
-
getCorporationId
public static String getCorporationId()
-
setCorporationId
public static void setCorporationId(String corporationId)
-
getIntegratorId
public static String getIntegratorId()
-
setIntegratorId
public static void setIntegratorId(String integratorId)
-
getLoggingHandler
public static StreamHandler getLoggingHandler()
-
setLoggingHandler
public static void setLoggingHandler(StreamHandler loggingHandler)
-
getMetricsScope
public static String getMetricsScope()
-
setMetricsScope
public static void setMetricsScope(String metricsScope)
-
getLoggingLevel
public static Level getLoggingLevel()
-
setLoggingLevel
public static void setLoggingLevel(Level loggingLevel)
-
getMaxConnections
public static int getMaxConnections()
-
setMaxConnections
public static void setMaxConnections(int maxConnections)
-
getConnectionTimeout
public static int getConnectionTimeout()
-
setConnectionTimeout
public static void setConnectionTimeout(int connectionTimeout)
-
getConnectionRequestTimeout
public static int getConnectionRequestTimeout()
-
setConnectionRequestTimeout
public static void setConnectionRequestTimeout(int connectionRequestTimeout)
-
getSocketTimeout
public static int getSocketTimeout()
-
setSocketTimeout
public static void setSocketTimeout(int socketTimeout)
-
setHttpClient
public static void setHttpClient(MPHttpClient httpClient)
-
getProxy
public static org.apache.http.HttpHost getProxy()
-
setProxy
public static void setProxy(org.apache.http.HttpHost proxy)
-
getRetryHandler
public static org.apache.http.client.HttpRequestRetryHandler getRetryHandler()
-
setRetryHandler
public static void setRetryHandler(org.apache.http.client.HttpRequestRetryHandler retryHandler)
-
-