\r\n

51Degrees Device Detection Java  4.4

Device detection services for 51Degrees Pipeline

fiftyone.devicedetection.examples.shared.ResourceKeyHelper Class Reference

Collaboration diagram for fiftyone.devicedetection.examples.shared.ResourceKeyHelper:

[legend]

Static Public Member Functions

static String  getNamedResourceKey (String resourceKeyName)
Obtain a resource key either from environment variable or from a property.
static boolean  isInvalidResourceKey (String resourceKeyValue)
Evaluate whether a resource key might be valid. More...
static String  getOrSetTestResourceKey ()
Obtain a resource key either from environment variable or from a property.
static String  getOrSetTestResourceKey (String value)
static String  getOrSetResourceKey (String value, String variableName, String errorMessage)
Obtain a resource key from the passed argument, from environment variable or from a property. More...
static String  getOrSetSuperResourceKey (String value, String variablename)

Static Public Attributes

static final String  TEST_RESOURCE_KEY = "TestResourceKey"

Member Function Documentation

◆ getOrSetResourceKey()

static String fiftyone.devicedetection.examples.shared.ResourceKeyHelper.getOrSetResourceKey ( String   value,
String   variableName,
String   errorMessage  
)
static

Obtain a resource key from the passed argument, from environment variable or from a property.

Store as System Property TEST_RESOURCE_KEY

◆ isInvalidResourceKey()

static boolean fiftyone.devicedetection.examples.shared.ResourceKeyHelper.isInvalidResourceKey ( String   resourceKeyValue )
static

Evaluate whether a resource key might be valid.

Parameters
resourceKeyValue - value to test
Returns
boolean