public class BMSClient
extends AbstractClient
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HTTP_SCHEME |
static java.lang.String |
HTTPS_SCHEME |
static java.lang.String |
REGION_GERMANY |
static java.lang.String |
REGION_SYDNEY |
static java.lang.String |
REGION_TOKYO |
static java.lang.String |
REGION_UK |
static java.lang.String |
REGION_US_EAST |
static java.lang.String |
REGION_US_SOUTH |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBluemixAppGUID()
Deprecated.
As of release 2.2.0. if you use the new initialize methoud this function return null.
Will be removed as release 3.x
|
java.lang.String |
getBluemixAppRoute()
Deprecated.
As of release 2.2.0. if you use the new initialize methoud this function return null.
Will be removed as release 3.x
|
java.lang.String |
getBluemixRegionSuffix() |
java.lang.String |
getDefaultProtocol() |
static BMSClient |
getInstance()
Should be called to obtain the instance of BMSClient.
|
void |
initialize(Context context,
java.lang.String bluemixRegion)
Initializes the SDK with supplied parameters.
|
void |
initialize(Context context,
java.lang.String bluemixAppRoute,
java.lang.String bluemixAppGUID,
java.lang.String bluemixRegion)
Deprecated.
As of release 2.2.0, replaced by
initialize(Context, String)
Initializes the SDK with supplied parameters
This method should be called before you send the first request |
void |
setDefaultProtocol(java.lang.String protocol) |
public static final java.lang.String REGION_US_SOUTH
public static final java.lang.String REGION_UK
public static final java.lang.String REGION_SYDNEY
public static final java.lang.String REGION_GERMANY
public static final java.lang.String REGION_US_EAST
public static final java.lang.String REGION_TOKYO
public static final java.lang.String HTTP_SCHEME
public static final java.lang.String HTTPS_SCHEME
public static BMSClient getInstance()
public void initialize(Context context, java.lang.String bluemixAppRoute, java.lang.String bluemixAppGUID, java.lang.String bluemixRegion) throws java.net.MalformedURLException
initialize(Context, String)
Initializes the SDK with supplied parameters
This method should be called before you send the first request
context
- Android application contextbluemixAppRoute
- Specifies the base URL for the authorization serverbluemixAppGUID
- Specifies the GUID of the applicationbluemixRegion
- Specifies the Bluemix deployment to use. Use values in BMSClient.REGION* static propsjava.net.MalformedURLException
- backendRoute
could not be parsed as a URL.public void initialize(Context context, java.lang.String bluemixRegion)
This method should be called before you send the first request
context
- Android application contextbluemixRegion
- Specifies the Bluemix region to use. Use values in BMSClient.REGION* static props.java.net.MalformedURLException
- backendRoute
could not be parsed as a URL.public java.lang.String getBluemixAppRoute()
public java.lang.String getBluemixAppGUID()
public java.lang.String getBluemixRegionSuffix()
public java.lang.String getDefaultProtocol()
public void setDefaultProtocol(java.lang.String protocol)