KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > echoserver > Data


1 /*
2  * This file is part of the QuickServer library
3  * Copyright (C) 2003-2005 QuickServer.org
4  *
5  * Use, modification, copying and distribution of this software is subject to
6  * the terms and conditions of the GNU Lesser General Public License.
7  * You should have received a copy of the GNU LGP License along with this
8  * library; if not, you can download a copy from <http://www.quickserver.org/>.
9  *
10  * For questions, suggestions, bug-reports, enhancement-requests etc.
11  * visit http://www.quickserver.org
12  *
13  */

14
15 package echoserver;
16
17 import org.quickserver.net.*;
18 import org.quickserver.net.server.*;
19
20 import java.io.*;
21
22 /**
23  * used by EchoAuthenticatorHandler
24  */

25 public class Data implements ClientData {
26     private String JavaDoc lastAsked = null;
27     private String JavaDoc username = null;
28     private byte password[] = null;
29     private String JavaDoc welcomeMsg = null;
30
31     public void setLastAsked(String JavaDoc lastAsked) {
32         this.lastAsked = lastAsked;
33     }
34     public String JavaDoc getLastAsked() {
35         return lastAsked;
36     }
37
38     public void setUsername(String JavaDoc username) {
39         this.username = username;
40     }
41     public String JavaDoc getUsername() {
42         return username;
43     }
44
45     public void setPassword(byte[] password) {
46         this.password = password;
47     }
48     public byte[] getPassword() {
49         return password;
50     }
51
52     public void setWelcomeMsg(String JavaDoc welcomeMsg) {
53         this.welcomeMsg = welcomeMsg;
54     }
55     public String JavaDoc getWelcomeMsg() {
56         return welcomeMsg;
57     }
58 }
59
60
61
Popular Tags