1// Copyright (c) 2004 Brian Wellington (bwelling@xbill.org) 2 3package org.xbill.DNS; 4 5/** 6 * AFS Data Base Record - maps a domain name to the name of an AFS cell 7 * database server. 8 * 9 * 10 * @author Brian Wellington 11 */ 12 13public class AFSDBRecord extends U16NameBase { 14 15private static final long serialVersionUID = 3034379930729102437L; 16 17AFSDBRecord() {} 18 19Record 20getObject() { 21 return new AFSDBRecord(); 22} 23 24/** 25 * Creates an AFSDB Record from the given data. 26 * @param subtype Indicates the type of service provided by the host. 27 * @param host The host providing the service. 28 */ 29public 30AFSDBRecord(Name name, int dclass, long ttl, int subtype, Name host) { 31 super(name, Type.AFSDB, dclass, ttl, subtype, "subtype", host, "host"); 32} 33 34/** Gets the subtype indicating the service provided by the host. */ 35public int 36getSubtype() { 37 return getU16Field(); 38} 39 40/** Gets the host providing service for the domain. */ 41public Name 42getHost() { 43 return getNameField(); 44} 45 46} 47