Shuyi Chen | d7955ce | 2013-05-22 14:51:55 -0700 | [diff] [blame] | 1 | // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org) |
| 2 | |
| 3 | package org.xbill.DNS; |
| 4 | |
| 5 | /** |
| 6 | * Mailbox Rename Record - specifies a rename of a mailbox. |
| 7 | * |
| 8 | * @author Brian Wellington |
| 9 | */ |
| 10 | |
| 11 | public class MRRecord extends SingleNameBase { |
| 12 | |
| 13 | private static final long serialVersionUID = -5617939094209927533L; |
| 14 | |
| 15 | MRRecord() {} |
| 16 | |
| 17 | Record |
| 18 | getObject() { |
| 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 | */ |
| 27 | public |
| 28 | MRRecord(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 */ |
| 33 | public Name |
| 34 | getNewName() { |
| 35 | return getSingleName(); |
| 36 | } |
| 37 | |
| 38 | } |