Home | History | Annotate | Download | only in DNS
      1 // Copyright (c) 1999-2004 Brian Wellington (bwelling (at) xbill.org)
      2 
      3 package org.xbill.DNS;
      4 
      5 /**
      6  * Mail Forwarder Record  - specifies a mail agent which forwards mail
      7  * for a domain (obsolete)
      8  *
      9  * @author Brian Wellington
     10  */
     11 
     12 public class MFRecord extends SingleNameBase {
     13 
     14 private static final long serialVersionUID = -6670449036843028169L;
     15 
     16 MFRecord() {}
     17 
     18 Record
     19 getObject() {
     20 	return new MFRecord();
     21 }
     22 
     23 /**
     24  * Creates a new MF Record with the given data
     25  * @param mailAgent The mail agent that forwards mail for the domain.
     26  */
     27 public
     28 MFRecord(Name name, int dclass, long ttl, Name mailAgent) {
     29 	super(name, Type.MF, dclass, ttl, mailAgent, "mail agent");
     30 }
     31 
     32 /** Gets the mail agent for the domain */
     33 public Name
     34 getMailAgent() {
     35 	return getSingleName();
     36 }
     37 
     38 public Name
     39 getAdditionalName() {
     40 	return getSingleName();
     41 }
     42 
     43 }
     44