package f00f.net.irc.martyr.replies; import f00f.net.irc.martyr.InCommand; import f00f.net.irc.martyr.util.ParameterIterator; //import org.apache.log4j.Logger; public class WhoisServerReply extends AbstractWhoisReply { //static Logger log = Logger.getLogger(WhoisServerReply.class); private String serverName; private String serverDesc; /** * Factory constructor. * */ public WhoisServerReply() { } public WhoisServerReply( String params ) { super( params ); } public String getIrcIdentifier() { return "312"; } /** * @return the DNS name of the server * */ public String getServerName() { return serverName; } /** * @return the free-form description of the server * */ public String getServerDescription() { return serverDesc; } protected void parseParams( ParameterIterator pi ) { serverName = (String)pi.next(); // Server name serverDesc = (String)pi.next(); // Server description //log.debug("WhoisServerReply: server name: " + serverName); //log.debug("WhoisServerReply: server desc: " + serverDesc); } public InCommand parse( String prefix, String identifier, String params ) { return new WhoisServerReply( params ); } }