blob: 5752f4986f0e04cb5382a8f9762ea5bebbce1197 (
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
|
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
package org.xbill.DNS;
/**
* Mail Group Record - specifies a mailbox which is a member of a mail group.
*
* @author Brian Wellington
*/
public class MGRecord extends SingleNameBase {
private static final long serialVersionUID = -3980055550863644582L;
MGRecord() {}
Record
getObject() {
return new MGRecord();
}
/**
* Creates a new MG Record with the given data
* @param mailbox The mailbox that is a member of the group specified by the
* domain.
*/
public
MGRecord(Name name, int dclass, long ttl, Name mailbox) {
super(name, Type.MG, dclass, ttl, mailbox, "mailbox");
}
/** Gets the mailbox in the mail group specified by the domain */
public Name
getMailbox() {
return getSingleName();
}
}
|