public class Setup
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Setup.Environment |
These enums are used to difference all Moip API environments.
|
| Constructor | Description |
|---|---|
Setup() |
| Modifier and Type | Method | Description |
|---|---|---|
Authentication |
getAuthentication() |
This method is used to get the value of
authentication attribute. |
static int |
getConnectTimeout() |
This method is used to get the value of
CONNECT_TIMEOUT attribute. |
java.lang.String |
getEnvironment() |
This method is used to get the value of
environment attribute. |
static int |
getReadTimeout() |
This method is used to get the value of
READ_TIMEOUT attribute. |
Setup |
setAuthentication(Authentication authentication) |
This method is used to set the authentication that will be
used to authorize the request.
|
Setup |
setConnectTimeout(int connectTimeout) |
Use this method will change the connect timeout default value.
|
Setup |
setEnvironment(Setup.Environment environment) |
This method is used to set the Moip API environment where the requests will be sent.
|
Setup |
setPlayerEndpoint(java.lang.String endpoint) |
This method is used to set the
Player endpoint for mock unit tests. |
Setup |
setReadTimeout(int readTimeout) |
Use this method will change the read timeout default value.
|
public Setup setAuthentication(Authentication authentication)
public Setup setEnvironment(Setup.Environment environment)
SANDBOX or PRODUCTION.environment - String the Moip API environment.Setuppublic Setup setPlayerEndpoint(java.lang.String endpoint)
Player endpoint for mock unit tests.endpoint - String the endpoint for mock tests.this (Setup)public Setup setConnectTimeout(int connectTimeout)
connectTimeout - int timeout in milliseconds.this (Setup)public Setup setReadTimeout(int readTimeout)
readTimeout - int timeout in millisecond.this (Setup)public Authentication getAuthentication()
authentication attribute.Authenticationpublic java.lang.String getEnvironment()
environment attribute.Stringpublic static int getConnectTimeout()
CONNECT_TIMEOUT attribute.intpublic static int getReadTimeout()
READ_TIMEOUT attribute.int