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

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

There is a newer version: 1.1.8-r1685
Show newest version
// Copyright (c) 2004 Brian Wellington ([email protected])

package org.xbill.DNS;

/**
 * AFS Data Base Record - maps a domain name to the name of an AFS cell
 * database server.
 *
 *
 * @author Brian Wellington
 */

public class AFSDBRecord extends U16NameBase {

private static final long serialVersionUID = 3034379930729102437L;

AFSDBRecord() {}

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

/**
 * Creates an AFSDB Record from the given data.
 * @param name the name
 * @param dclass the class
 * @param ttl the ttl
 * @param subtype Indicates the type of service provided by the host.
 * @param host The host providing the service.
 */
public
AFSDBRecord(Name name, int dclass, long ttl, int subtype, Name host) {
	super(name, Type.AFSDB, dclass, ttl, subtype, "subtype", host, "host");
}

/** Gets the subtype indicating the service provided by the host. 
 * @return the subtype*/
public int
getSubtype() {
	return getU16Field();
}

/** Gets the host providing service for the domain. 
 * @return the host name*/
public Name
getHost() {
	return getNameField();
}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy