diff options
Diffstat (limited to 'src/org/xbill/DNS/NSAP_PTRRecord.java')
-rw-r--r-- | src/org/xbill/DNS/NSAP_PTRRecord.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/org/xbill/DNS/NSAP_PTRRecord.java b/src/org/xbill/DNS/NSAP_PTRRecord.java new file mode 100644 index 0000000..ecc609f --- /dev/null +++ b/src/org/xbill/DNS/NSAP_PTRRecord.java @@ -0,0 +1,38 @@ +// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org) + +package org.xbill.DNS; + +/** + * NSAP Pointer Record - maps a domain name representing an NSAP Address to + * a hostname. + * + * @author Brian Wellington + */ + +public class NSAP_PTRRecord extends SingleNameBase { + +private static final long serialVersionUID = 2386284746382064904L; + +NSAP_PTRRecord() {} + +Record +getObject() { + return new NSAP_PTRRecord(); +} + +/** + * Creates a new NSAP_PTR Record with the given data + * @param target The name of the host with this address + */ +public +NSAP_PTRRecord(Name name, int dclass, long ttl, Name target) { + super(name, Type.NSAP_PTR, dclass, ttl, target, "target"); +} + +/** Gets the target of the NSAP_PTR Record */ +public Name +getTarget() { + return getSingleName(); +} + +} |