1 | void setProviderUrl(String url) {↵ | | 1 | void setRootdn(String newRootdn) {↵
|
2 | setProperty(PROVIDER_URL, url);↵ | | 2 | this.setProperty(ROOTDN, newRootdn);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * method returns the provider url for jndi to connect to↵ | | 5 | * Gets the Rootdn attribute of the LDAPSampler object.↵
|
6 | * ↵ | | 6 | * ↵
|
7 | * @return the provider URL↵ | | 7 | * @return the Rootdn value↵
|
8 | */↵ | | 8 | */↵
|
9 | public String getProviderUrl() {↵ | | 9 | public String getRootdn() {↵
|
10 | return getPropertyAsString(PROVIDER_URL);↵ | | 10 | return getPropertyAsString(ROOTDN);↵
|
11 | }↵ | | 11 | }↵
|
|
12 | /**↵ | | 12 | /**↵
|
13 | * set the connection factory for↵ | | 13 | * Sets the ↵
|
14 | * ↵ | | |
|
15 | * @param factory↵ | | 14 | Test attribute of the LdapConfig object.↵
|
| | | 15 | * ↵
|
| | | 16 | * @param newTest↵
|
| | | 17 | * the new test value(Add,Modify,Delete and search)↵
|
16 | */↵ | | 18 | */↵
|
17 | public void setConnectionFactory(String factory) {↵ | | 19 | public void setTest(String newTest) {↵
|
18 | setProperty(CONN_FACTORY, factory);↵ | | 20 | this.setProperty(TEST, newTest);↵
|
19 | | | 21 |
|