1 | void setUsername(String user) {↵ | | 1 | void setMessageChoice(String choice) {↵
|
2 | setProperty(PRINCIPAL, user);↵ | | 2 | setProperty(MESSAGE_CHOICE, choice);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * return the username used to login to the jms server↵ | | 5 | * return the ↵
|
6 | * ↵ | | |
|
7 | * @return the username used to login to the jms server↵ | | 6 | source of the message↵
|
| | | 7 | * ↵
|
8 | */↵ | | 8 | */↵
|
9 | public String getUsername() {↵ | | 9 | public String getMessageChoice() {↵
|
10 | return getPropertyAsString(PRINCIPAL);↵ | | 10 | return getPropertyAsString(MESSAGE_CHOICE);↵
|
11 | }↵ | | 11 | }↵
|
|
12 | /**↵ | | 12 | /**↵
|
13 | * Set the password to login to the jms server↵ | | 13 | * set the input file for the publisher↵
|
14 | * ↵ | | 14 | * ↵
|
15 | * @param pwd↵ | | 15 | * @param file↵
|
16 | */↵ | | 16 | */↵
|
17 | public void setPassword(String pwd) {↵ | | 17 | public void setInputFile(String file) {↵
|
18 | setProperty(CREDENTIALS, pwd);↵ | | 18 | setProperty(INPUT_FILE, file);↵
|
19 | } | | 19 | }
|