public abstract static class DriverConstant.DataServiceConstant
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_BASE_NAME
'safsdata' the default relative URI on which the SAFS Data service runs.
|
static java.lang.String |
DEFAULT_HOST
'localhost' the default host on which the SAFS Data service runs.
|
static java.lang.String |
DEFAULT_ID
"SAFS_DATA_SERVICE"
Default service ID. |
static java.lang.String |
DEFAULT_INTERCEPT_STEP
"false"
|
static java.lang.String |
DEFAULT_PORT
'8080' the default port number on which the SAFS Data service runs.
|
static int |
DEFAULT_PORT_INT
8080
|
static java.lang.String |
DEFAULT_PROTOCOL
'http://' the default protocol with which the SAFS Data service runs.
|
static java.lang.String |
DEFAULT_SERVER_URL
'http://localhost:8080/safsdata' the default server URL on which the SAFS Data service runs.
|
static java.lang.String |
ITEM_BASE_NAME
"base.name" defines the relative URI where the safs data service runs
Examples: [SAFS_DATA_SERVICE] base.name=safsdata |
static java.lang.String |
ITEM_HOST
"host" defines the name of host where the safs data service runs
Examples: [SAFS_DATA_SERVICE] host=serverMachineName |
static java.lang.String |
ITEM_INTERCEPT_STEP
"intercept.step" defines if the test step will be intercepted.
If this is set to true, then each test step will be intercepted. |
static java.lang.String |
ITEM_PORT
"port" defines the port number where the safs data service runs
Examples: [SAFS_DATA_SERVICE] port=8080 |
static java.lang.String |
ITEM_PROTOCOL
"protocol" defines the protocol with which the safs data service runs.
|
static java.lang.String |
ITEM_SERVER_URL
"server.url" defines the whole URL of safs data service.
If this is defined, then the 'protocol', 'host', 'port' and 'base.name' will not take effect anymore. Examples: [SAFS_DATA_SERVICE] server.url=http://host:8080/safsdata |
static java.lang.String |
PROPERTY_BASE_NAME
"safs.data.base.name" defines the relative URI where the safs data service runs
JVM command line: -Dsafs.data.base.name=relativeURI Examples: -Dsafs.data.base.name=safsdata |
static java.lang.String |
PROPERTY_HOST
"safs.data.host" defines the name of host where the safs data service runs
JVM command line: -Dsafs.data.host=serverMachineName |
static java.lang.String |
PROPERTY_INTERCEPT_STEP
"safs.data.intercept.step" defines if the test step will be intercepted.
If this is set to true, then each test step will be intercepted. |
static java.lang.String |
PROPERTY_PORT
"safs.data.port" defines the port number where the safs data service runs
JVM command line: -Dsafs.data.port=portNumber Examples: -Dsafs.data.port=8080 |
static java.lang.String |
PROPERTY_PROTOCOL
"safs.data.protocol" defines the protocol with which the safs data service runs
JVM command line: -Dsafs.data.protocol=http:// |
static java.lang.String |
PROPERTY_SERVER_URL
"safs.data.server.url" defines the whole URL of safs data service
If this is defined, then the 'safs.data.protocol', 'safs.data.host', 'safs.data.port' and 'safs.data.base.name' will not take effect anymore. JVM command line: -Dsafs.data.server.url=http://host:port/safsdata As always, "the property setting" has higher priority than configuration file setting. Examples: -Dsafs.data.server.url=http://host:8080/safsdata |
static java.lang.String |
SECTION_NAME
"SAFS_DATA_SERVICE"
Predefined "section" of a Driver Configuration source. |
Constructor and Description |
---|
DataServiceConstant() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getServiceURL(ConfigureInterface configInfo)
Try to get 'data service URL' from
system property PROPERTY_SERVER_URL
item ITEM_SERVER_URL of section SECTION_NAME from configuration. |
static boolean |
isInterceptStep()
This should be called after calling
readInterceptions(ConfigureInterface) . |
static void |
readInterceptions(ConfigureInterface configInfo) |
public static final java.lang.String SECTION_NAME
public static final java.lang.String DEFAULT_ID
public static final int DEFAULT_PORT_INT
public static final java.lang.String DEFAULT_HOST
public static final java.lang.String DEFAULT_PORT
public static final java.lang.String DEFAULT_BASE_NAME
public static final java.lang.String DEFAULT_PROTOCOL
public static final java.lang.String DEFAULT_SERVER_URL
public static final java.lang.String ITEM_PROTOCOL
public static final java.lang.String PROPERTY_PROTOCOL
public static final java.lang.String ITEM_HOST
public static final java.lang.String PROPERTY_HOST
public static final java.lang.String ITEM_PORT
public static final java.lang.String PROPERTY_PORT
public static final java.lang.String ITEM_BASE_NAME
public static final java.lang.String PROPERTY_BASE_NAME
public static final java.lang.String ITEM_SERVER_URL
public static final java.lang.String PROPERTY_SERVER_URL
public static final java.lang.String DEFAULT_INTERCEPT_STEP
public static final java.lang.String ITEM_INTERCEPT_STEP
public static final java.lang.String PROPERTY_INTERCEPT_STEP
public static final java.lang.String getServiceURL(ConfigureInterface configInfo)
PROPERTY_SERVER_URL
ITEM_SERVER_URL
of section SECTION_NAME
from configuration.
PROPERTY_PROTOCOL
, PROPERTY_HOST
, PROPERTY_PORT
and PROPERTY_BASE_NAME
from system property
ITEM_PROTOCOL
, ITEM_SERVER_URL
, ITEM_HOST
, ITEM_PORT
from configuration
configInfo
- ConfigureInterface, the configuration to find ITEM_SERVER_URL
, ITEM_HOST
, ITEM_PORT
etc.public static final void readInterceptions(ConfigureInterface configInfo)
public static boolean isInterceptStep()
readInterceptions(ConfigureInterface)
.Copyright © SAS Institute. All Rights Reserved.