Package com.midtrans.proxy
Class ProxyConfig
- java.lang.Object
-
- com.midtrans.proxy.ProxyConfig
-
public class ProxyConfig extends Object
Merchant proxy configuration
-
-
Constructor Summary
Constructors Constructor Description ProxyConfig(String host, int port, String username, String password)Proxy config constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProxyConfigBuilderbuilder()Initialize proxy with builderStringgetHost()Get merchant proxy host configuration.StringgetPassword()Get proxy password to connect to Veritrans APIintgetPort()Get merchant proxy port configurationStringgetUsername()Get proxy username to connect to Veritrans API
-
-
-
Constructor Detail
-
ProxyConfig
public ProxyConfig(String host, int port, String username, String password)
Proxy config constructor.- Parameters:
host- the proxy server host address.port- the proxy server listening port.username- the username used to authenticate against the proxy server.password- the password used to authenticate against the proxy server.
-
-
Method Detail
-
getHost
public String getHost()
Get merchant proxy host configuration.- Returns:
- Merchant proxy host config.
-
getPort
public int getPort()
Get merchant proxy port configuration- Returns:
- Merchant proxy port config
-
getUsername
public String getUsername()
Get proxy username to connect to Veritrans API- Returns:
- Merchant proxy username config
-
getPassword
public String getPassword()
Get proxy password to connect to Veritrans API- Returns:
- Merchant proxy password config
-
builder
public static ProxyConfigBuilder builder()
Initialize proxy with builder- Returns:
- ProxyConfigBuilder
-
-