com.chargebee
Class Environment

java.lang.Object
  extended by com.chargebee.Environment

public class Environment
extends Object


Field Summary
static String API_VERSION
           
 String apiKey
          You can generate API keys from the ChargeBee web interface.
static String CHARSET
           
 int connectTimeout
          Timeout value, in milliseconds, to be used when trying to conect to the chargebee api server.
static String LIBRARY_VERSION
           
 int readTimeout
          Timeout value, in milliseconds, to be used when reading response from the chargebee api server.
 String siteName
          Your chargebee subdomain.
 
Constructor Summary
Environment(String siteName, String apiKey)
           
 
Method Summary
 String apiBaseUrl()
           
static void configure(String siteName, String apikey)
           
static Environment defaultConfig()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

apiKey

public final String apiKey
You can generate API keys from the ChargeBee web interface.


siteName

public final String siteName
Your chargebee subdomain. Could be your sandbox or production.


connectTimeout

public int connectTimeout
Timeout value, in milliseconds, to be used when trying to conect to the chargebee api server. If the timeout expires before the connection can be established, a java.net.SocketTimeoutException is raised. A timeout of zero is interpreted as an infinite timeout.


readTimeout

public int readTimeout
Timeout value, in milliseconds, to be used when reading response from the chargebee api server. If the timeout expires before there is data available for read, a java.net.SocketTimeoutException is raised. A timeout of zero is interpreted as an infinite timeout.


CHARSET

public static final String CHARSET
See Also:
Constant Field Values

API_VERSION

public static final String API_VERSION
See Also:
Constant Field Values

LIBRARY_VERSION

public static final String LIBRARY_VERSION
See Also:
Constant Field Values
Constructor Detail

Environment

public Environment(String siteName,
                   String apiKey)
Method Detail

configure

public static void configure(String siteName,
                             String apikey)

defaultConfig

public static Environment defaultConfig()

apiBaseUrl

public String apiBaseUrl()


Copyright © 2015 ChargeBee. All Rights Reserved.