blob: a7ff4fc9b76d2dbc3b38f1b549283ac40dacadc1 [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 * Mailbox Rename Record - specifies a rename of a mailbox.
7 *
8 * @author Brian Wellington
9 */
10
11public class MRRecord extends SingleNameBase {
12
13private static final long serialVersionUID = -5617939094209927533L;
14
15MRRecord() {}
16
17Record
18getObject() {
19 return new MRRecord();
20}
21
22/**
23 * Creates a new MR Record with the given data
24 * @param newName The new name of the mailbox specified by the domain.
25 * domain.
26 */
27public
28MRRecord(Name name, int dclass, long ttl, Name newName) {
29 super(name, Type.MR, dclass, ttl, newName, "new name");
30}
31
32/** Gets the new name of the mailbox specified by the domain */
33public Name
34getNewName() {
35 return getSingleName();
36}
37
38}