All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xbill.DNS.MGRecord Maven / Gradle / Ivy

There is a newer version: 2.0-beta-7
Show newest version
// Copyright (c) 1999-2004 Brian Wellington ([email protected])

package org.xbill.DNS;

/**
 * Mail Group Record  - specifies a mailbox which is a member of a mail group.
 *
 * @author Brian Wellington
 */

public class MGRecord extends SingleNameBase {

private static final long serialVersionUID = -3980055550863644582L;

MGRecord() {}

Record
getObject() {
	return new MGRecord();
}

/** 
 * Creates a new MG Record with the given data
 * @param mailbox The mailbox that is a member of the group specified by the
 * domain.
 */
public
MGRecord(Name name, int dclass, long ttl, Name mailbox) {
	super(name, Type.MG, dclass, ttl, mailbox, "mailbox");
}

/** Gets the mailbox in the mail group specified by the domain */
public Name
getMailbox() {
	return getSingleName();
}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy