01: // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
02:
03: package org.xbill.DNS;
04:
05: /**
06: * Mail Group Record - specifies a mailbox which is a member of a mail group.
07: *
08: * @author Brian Wellington
09: */
10:
11: public class MGRecord extends SingleNameBase {
12:
13: MGRecord() {
14: }
15:
16: Record getObject() {
17: return new MGRecord();
18: }
19:
20: /**
21: * Creates a new MG Record with the given data
22: * @param mailbox The mailbox that is a member of the group specified by the
23: * domain.
24: */
25: public MGRecord(Name name, int dclass, long ttl, Name mailbox) {
26: super (name, Type.MG, dclass, ttl, mailbox, "mailbox");
27: }
28:
29: /** Gets the mailbox in the mail group specified by the domain */
30: public Name getMailbox() {
31: return getSingleName();
32: }
33:
34: }
|