blob: d1f4d6344b0e6f36a691623cf8c81c5f93fbb538 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
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 );
}
}
|