Home | History | Annotate | Download | only in DNS
      1 // Copyright (c) 2004 Brian Wellington (bwelling (at) xbill.org)
      2 
      3 package 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 
     13 public class AFSDBRecord extends U16NameBase {
     14 
     15 private static final long serialVersionUID = 3034379930729102437L;
     16 
     17 AFSDBRecord() {}
     18 
     19 Record
     20 getObject() {
     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  */
     29 public
     30 AFSDBRecord(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. */
     35 public int
     36 getSubtype() {
     37 	return getU16Field();
     38 }
     39 
     40 /** Gets the host providing service for the domain. */
     41 public Name
     42 getHost() {
     43 	return getNameField();
     44 }
     45 
     46 }
     47