public class DataHelper
extends java.lang.Object
| Constructor and Description |
|---|
DataHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
validateApiKey(java.lang.String api_key)
Helper function to validate the provided api key
- Api key should be non-null and non-empty
|
static void |
validateApiVersion(java.lang.String api_version,
java.util.HashSet<java.lang.String> supported_versions)
Helper function to validate the provided Api version
- Api version should be non-null and non-empty
- Api version should be one of the versions supported by this SDK
|
public static void validateApiKey(java.lang.String api_key)
throws BayonetException
api_key - to validateBayonetException - if the Api key is invalidpublic static void validateApiVersion(java.lang.String api_version,
java.util.HashSet<java.lang.String> supported_versions)
throws BayonetException
api_version - to validatesupported_versions - versions supported by this SDKBayonetException - if the Api version is invalid