1 14 15 package echoserver; 16 17 import org.quickserver.net.*; 18 import org.quickserver.net.server.*; 19 20 import java.io.*; 21 22 25 public class Data implements ClientData { 26 private String lastAsked = null; 27 private String username = null; 28 private byte password[] = null; 29 private String welcomeMsg = null; 30 31 public void setLastAsked(String lastAsked) { 32 this.lastAsked = lastAsked; 33 } 34 public String getLastAsked() { 35 return lastAsked; 36 } 37 38 public void setUsername(String username) { 39 this.username = username; 40 } 41 public String 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 welcomeMsg) { 53 this.welcomeMsg = welcomeMsg; 54 } 55 public String getWelcomeMsg() { 56 return welcomeMsg; 57 } 58 } 59 60 61 | Popular Tags |