package nslookup; import java.io.Serializable; /** this is the class used to model requests to the name server * * @author marcod * */ public class NameQuery implements Serializable { /** will host the name of the queryed host */ String hostName = null; /** true if we accept an answer from cache */ boolean cached = false; public NameQuery(String h, boolean b) { hostName = h; cached = b; } public String toString() { return hostName; } public String getHostname() { return hostName; } public boolean getCached() { return cached; } }