01: // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
02:
03: package org.xbill.DNS;
04:
05: /**
06: * Mail Forwarder Record - specifies a mail agent which forwards mail
07: * for a domain (obsolete)
08: *
09: * @author Brian Wellington
10: */
11:
12: public class MFRecord extends SingleNameBase {
13:
14: MFRecord() {
15: }
16:
17: Record getObject() {
18: return new MFRecord();
19: }
20:
21: /**
22: * Creates a new MF Record with the given data
23: * @param mailAgent The mail agent that forwards mail for the domain.
24: */
25: public MFRecord(Name name, int dclass, long ttl, Name mailAgent) {
26: super (name, Type.MF, dclass, ttl, mailAgent, "mail agent");
27: }
28:
29: /** Gets the mail agent for the domain */
30: public Name getMailAgent() {
31: return getSingleName();
32: }
33:
34: public Name getAdditionalName() {
35: return getSingleName();
36: }
37:
38: }
|