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  * NSAP Pointer Record  - maps a domain name representing an NSAP Address to
      7  * a hostname.
      8  *
      9  * @author Brian Wellington
     10  */
     11 
     12 public class NSAP_PTRRecord extends SingleNameBase {
     13 
     14 private static final long serialVersionUID = 2386284746382064904L;
     15 
     16 NSAP_PTRRecord() {}
     17 
     18 Record
     19 getObject() {
     20 	return new NSAP_PTRRecord();
     21 }
     22 
     23 /**
     24  * Creates a new NSAP_PTR Record with the given data
     25  * @param target The name of the host with this address
     26  */
     27 public
     28 NSAP_PTRRecord(Name name, int dclass, long ttl, Name target) {
     29 	super(name, Type.NSAP_PTR, dclass, ttl, target, "target");
     30 }
     31 
     32 /** Gets the target of the NSAP_PTR Record */
     33 public Name
     34 getTarget() {
     35 	return getSingleName();
     36 }
     37 
     38 }
     39