1 | void setUsername(String user) {↵ | | 1 | void setClassname(String ↵
|
2 | setProperty(PRINCIPAL, user);↵ | | |
|
3 | ↵ | | 2 | classname)↵
|
| | | 3 | {↵
|
| | | 4 | setProperty(CLASSNAME, classname);↵
|
4 | }↵ | | 5 | }↵
|
|
5 | /**↵ | | 6 | /**↵
|
6 | * return the username used to login to the jms server↵ | | 7 | * Gets the ↵
|
7 | * ↵ | | |
|
8 | ↵ | | 8 | Classname attribute of the JavaConfig object↵
|
| | | 9 | *↵
|
9 | * @return the username used to login to the jms server↵ | | 10 | * @return the ↵
|
10 | ↵ | | 11 | Classname value↵
|
11 | */↵ | | 12 | */↵
|
12 | public String getUsername() {↵ | | 13 | public String getClassname()↵
|
13 | ↵ | | |
|
| | | 14 | {↵
|
14 | return getPropertyAsString(PRINCIPAL);↵ | | 15 | return getPropertyAsString(↵
|
15 | }↵ | | |
|
|
16 | ↵ | | 16 | CLASSNAME);↵
|
| | | 17 | }↵
|
| | | 18 | ↵
|
17 | /**↵ | | 19 | /**↵
|
18 | * Set the password to login to the jms server↵ | | 20 | * Set the ↵
|
19 | * ↵ | | |
|
20 | * @param pwd↵ | | |
|
21 | ↵ | | 21 | string label used to create an instance of the↵
|
| | | 22 | * test with the string constructor.↵
|
| | | 23 | * @param constr↵
|
22 | */↵ | | 24 | */↵
|
23 | public void setPassword(String pwd) {↵ | | 25 | public void set↵
|
24 | setProperty(CREDENTIALS, pwd);↵ | | |
|
25 | ↵ | | 26 | ConstructorString(String constr)↵
|
| | | 27 | {↵
|
| | | 28 | setProperty(CONSTRUCTORSTRING,constr);↵
|
26 | } | | 29 | }
|