diff options
Diffstat (limited to 'src/org/xbill/DNS/MRRecord.java')
-rw-r--r-- | src/org/xbill/DNS/MRRecord.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/org/xbill/DNS/MRRecord.java b/src/org/xbill/DNS/MRRecord.java new file mode 100644 index 0000000..a7ff4fc --- /dev/null +++ b/src/org/xbill/DNS/MRRecord.java @@ -0,0 +1,38 @@ +// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org) + +package org.xbill.DNS; + +/** + * Mailbox Rename Record - specifies a rename of a mailbox. + * + * @author Brian Wellington + */ + +public class MRRecord extends SingleNameBase { + +private static final long serialVersionUID = -5617939094209927533L; + +MRRecord() {} + +Record +getObject() { + return new MRRecord(); +} + +/** + * Creates a new MR Record with the given data + * @param newName The new name of the mailbox specified by the domain. + * domain. + */ +public +MRRecord(Name name, int dclass, long ttl, Name newName) { + super(name, Type.MR, dclass, ttl, newName, "new name"); +} + +/** Gets the new name of the mailbox specified by the domain */ +public Name +getNewName() { + return getSingleName(); +} + +} |