01: // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
02:
03: package org.xbill.DNS;
04:
05: /**
06: * Mailbox Record - specifies a host containing a mailbox.
07: *
08: * @author Brian Wellington
09: */
10:
11: public class MBRecord extends SingleNameBase {
12:
13: MBRecord() {
14: }
15:
16: Record getObject() {
17: return new MBRecord();
18: }
19:
20: /**
21: * Creates a new MB Record with the given data
22: * @param mailbox The host containing the mailbox for the domain.
23: */
24: public MBRecord(Name name, int dclass, long ttl, Name mailbox) {
25: super (name, Type.MB, dclass, ttl, mailbox, "mailbox");
26: }
27:
28: /** Gets the mailbox for the domain */
29: public Name getMailbox() {
30: return getSingleName();
31: }
32:
33: public Name getAdditionalName() {
34: return getSingleName();
35: }
36:
37: }
|