1 | void setXmlPathLoc(String path) {↵ | | 1 | void setJNDIIntialContextFactory(String icf) {↵
|
2 | setProperty(XML_PATH_LOC, path);↵ | | 2 | setProperty(JNDI_INITIAL_CONTEXT_FAC, icf);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Get the path where XML messages are stored. this is the directory where↵ | | 5 | * met↵
|
6 | * JMeter will randomly select a file.↵ | | 6 | hod returns the initial context factory for jndi initial context↵
|
| | | 7 | * lookup.↵
|
| | | 8 | * ↵
|
| | | 9 | * @return the initial context factory ↵
|
7 | */↵ | | 10 | */↵
|
8 | public String getXmlPathLoc() {↵ | | 11 | public String getJNDIInitialContextFactory() {↵
|
9 | return getPropertyAsString(XML_PATH_LOC);↵ | | 12 | return getPropertyAsString(↵
|
10 | }↵ | | |
|
|
11 | /**↵ | | |
|
12 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵ | | |
|
13 | * string path.↵ | | |
|
14 | * ↵ | | |
|
15 | * @param filename↵ | | 13 | JNDI_INITIAL_CONTEXT_FAC);↵
|
| | | 14 | }↵
|
|
| | | 15 | /**↵
|
| | | 16 | * set the provider user for jndi↵
|
| | | 17 | * ↵
|
| | | 18 | * @param url the provider URL↵
|
16 | */↵ | | 19 | */↵
|
17 | public void setXmlFile(String filename) {↵ | | 20 | public void set↵
|
18 | setProperty(XML_DATA_FILE, filename↵ | | 21 | ProviderUrl(String url) {↵
|
19 | );↵ | | 22 | setProperty(PROVIDER_URL, url);↵
|
20 | }↵ | | 23 | }↵
|
|
21 | /**↵ | | 24 | /**↵
|
22 | * Get the file location of the xml file.↵ | | 25 | * method returns the provider url for jndi to connect to↵
|
23 | * ↵ | | 26 | * ↵
|
24 | * @return String file path.↵ | | 27 | * @return the provider URL↵
|
25 | */↵ | | 28 | */↵
|
26 | public String getXmlFile() {↵ | | 29 | public String getProviderUrl() {↵
|
27 | return getPropertyAsString(XML_DATA_FILE);↵ | | 30 | return getPropertyAsString(PROVIDER_URL);↵
|
28 | | | 31 |
|