blob: 5752f4986f0e04cb5382a8f9762ea5bebbce1197 [file] [log] [blame]
Shuyi Chend7955ce2013-05-22 14:51:55 -07001// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
2
3package org.xbill.DNS;
4
5/**
6 * Mail Group Record - specifies a mailbox which is a member of a mail group.
7 *
8 * @author Brian Wellington
9 */
10
11public class MGRecord extends SingleNameBase {
12
13private static final long serialVersionUID = -3980055550863644582L;
14
15MGRecord() {}
16
17Record
18getObject() {
19 return new MGRecord();
20}
21
22/**
23 * Creates a new MG Record with the given data
24 * @param mailbox The mailbox that is a member of the group specified by the
25 * domain.
26 */
27public
28MGRecord(Name name, int dclass, long ttl, Name mailbox) {
29 super(name, Type.MG, dclass, ttl, mailbox, "mailbox");
30}
31
32/** Gets the mailbox in the mail group specified by the domain */
33public Name
34getMailbox() {
35 return getSingleName();
36}
37
38}