blob: 6b65edf48703ec8f619e5b2915ad6f5329aa96e5 (
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
|
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
package org.xbill.DNS;
/**
* Mailbox Record - specifies a host containing a mailbox.
*
* @author Brian Wellington
*/
public class MBRecord extends SingleNameBase {
private static final long serialVersionUID = 532349543479150419L;
MBRecord() {}
Record
getObject() {
return new MBRecord();
}
/**
* Creates a new MB Record with the given data
* @param mailbox The host containing the mailbox for the domain.
*/
public
MBRecord(Name name, int dclass, long ttl, Name mailbox) {
super(name, Type.MB, dclass, ttl, mailbox, "mailbox");
}
/** Gets the mailbox for the domain */
public Name
getMailbox() {
return getSingleName();
}
public Name
getAdditionalName() {
return getSingleName();
}
}
|