1 | void setTest(String newTest) {↵ | | 1 | void setJNDIIntialContextFactory(String icf) {↵
|
2 | this.setProperty(TEST, newTest);↵ | | 2 | setProperty(↵
|
3 | }↵ | | |
|
|
4 | /*************************************************************************↵ | | 3 | JNDI_INITIAL_CONTEXT_FAC, icf);↵
|
| | | 4 | }↵
|
|
5 | **↵ | | 5 | /**↵
|
6 | * Gets the test attribute of the LDAPSampler object↵ | | 6 | * method returns the initial context factory for jndi initial context↵
|
| | | 7 | * lookup.↵
|
7 | * ↵ | | 8 | * ↵
|
8 | * @return The test value (Add,Modify,Delete and search)↵ | | 9 | * @return the ↵
|
9 | **************************************************************************/↵ | | |
|
10 | public String getTest↵ | | 10 | initial context factory ↵
|
| | | 11 | */↵
|
11 | () {↵ | | 12 | public String getJNDIInitialContextFactory() {↵
|
12 | return getPropertyAsString(TEST);↵ | | 13 | return getPropertyAsString(↵
|
13 | }↵ | | |
|
|
14 | /*************************************************************************↵ | | 14 | JNDI_INITIAL_CONTEXT_FAC);↵
|
| | | 15 | }↵
|
|
15 | **↵ | | 16 | /**↵
|
16 | * Sets the attributes of the LdapConfig object↵ | | 17 | * set the ↵
|
17 | * ↵ | | |
|
18 | * @param newAttrs↵ | | |
|
19 | * The new attributes value↵ | | |
|
20 | *************************************************************************↵ | | 18 | provider user for jndi↵
|
| | | 19 | * ↵
|
| | | 20 | * @param url the provider URL↵
|
21 | */↵ | | 21 | */↵
|
22 | public void setAttrs(String newAttrs) {↵ | | 22 | public void setProviderUrl(String url) {↵
|
23 | this.setProperty(ATTRIBS, newAttrs);↵ | | 23 | setProperty(↵
|
24 | }↵ | | |
|
|
25 | /*************************************************************************↵ | | 24 | PROVIDER_URL, url);↵
|
| | | 25 | }↵
|
|
26 | **↵ | | 26 | /**↵
|
27 | * Gets the attributes of the LDAPSampler object↵ | | 27 | * method returns the provider url for jndi to connect to↵
|
28 | * ↵ | | 28 | * ↵
|
29 | * @return The attributes↵ | | 29 | * @return the ↵
|
30 | *************************************************************************↵ | | 30 | provider URL↵
|
31 | */↵ | | 31 | */↵
|
32 | public String getAttrs() {↵ | | 32 | public String getProviderUrl() {↵
|
33 | return getPropertyAsString(ATTRIBS);↵ | | 33 | return getPropertyAsString(PROVIDER_URL);↵
|
34 | | | 34 |
|