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