1 | String getClassname()↵ | | 1 | String get↵
|
2 | {↵ | | |
|
3 | return getPropertyAsString(CLASSNAME);↵ | | |
|
4 | }↵ | | |
|
5 | ↵ | | |
|
6 | ↵ | | 2 | Topic() {↵
|
| | | 3 | return getPropertyAsString(TOPIC);↵
|
| | | 4 | }↵
|
|
7 | /**↵ | | 5 | /**↵
|
8 | * Set the string label used to create an instance of the↵ | | 6 | * set the ↵
|
9 | * test with the string constructor.↵ | | |
|
10 | * @param constr↵ | | |
|
11 | ↵ | | 7 | username to login into the jms server if needed↵
|
| | | 8 | * ↵
|
| | | 9 | * @param user↵
|
12 | */↵ | | 10 | */↵
|
13 | public void setConstructorString(String constr)↵ | | 11 | public void set↵
|
14 | {↵ | | |
|
15 | setProperty(CONSTRUCTORSTRING,constr);↵ | | |
|
16 | }↵ | | |
|
17 | ↵ | | |
|
18 | ↵ | | 12 | Username(String user) {↵
|
| | | 13 | setProperty(PRINCIPAL, user);↵
|
| | | 14 | }↵
|
|
19 | /**↵ | | 15 | /**↵
|
20 | * get the string passed to the string constructor↵ | | 16 | * return the ↵
|
21 | ↵ | | 17 | username used to login to the jms server↵
|
| | | 18 | * ↵
|
| | | 19 | * @return the username used to login to the jms server↵
|
22 | */↵ | | 20 | */↵
|
23 | public String getConstructorString()↵ | | 21 | public String get↵
|
24 | {↵ | | |
|
25 | ↵ | | 22 | Username() {↵
|
26 | return getPropertyAsString(CONSTRUCTORSTRING);↵ | | 23 | return getPropertyAsString(↵
|
27 | | | 24 | PRINCIPAL);↵
|
| | | 25 |
|