com.internationalnetwork.net.rr
Class RP

Object
  extended by com.internationalnetwork.net.RR
      extended by com.internationalnetwork.net.rr.RP

public class RP
extends RR

Resource Record type 17: Responsible Person.


Field Summary
 
Fields inherited from class com.internationalnetwork.net.RR
A, A6, AAAA, AFSDB, ATMA, CERT, CLASS_CH, CLASS_CS, CLASS_HS, CLASS_IN, CNAME, DNAME, EID, GPOS, HINFO, ISDN, KEY, KX, LOC, MB, MD, MF, MG, MINFO, MR, MX, NAPTR, NIMLOC, NS, NSAP, NSAP_PTR, NULL, NXT, OPT, PTR, PX, RP, RR_TYPES, rrData, rrType, RT, SIG, SINK, SOA, SRV, TXT, VERSION, WKS, X25
 
Constructor Summary
RP(String rp)
          Construct a new RP record with a String-representation of an RP record.
RP(String rp, String lt)
          Construct a new RP record with the specific Responsible Person and Location of related TXT records.
 
Method Summary
 String getLocation()
          Return the Location of related TXT records for this RP record.
 ElectronicMailAddress getResponsiblePerson()
          Return the Responsible Person eMail address for this RP record.
 String toString()
          Convert record to String.
 
Methods inherited from class com.internationalnetwork.net.RR
parseRR, parseRR, parseRR
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RP

public RP(String rp)
Construct a new RP record with a String-representation of an RP record.

Parameters:
rp - String containing a space-delimited Responsible Person and Location of related TXT records pair
Throws:
IllegalArgumentException - - you only need to catch this when the record text isn't hard-coded

RP

public RP(String rp,
          String lt)
Construct a new RP record with the specific Responsible Person and Location of related TXT records.

Parameters:
rp - Responsible Person
lt - Location of related TXT records
Throws:
IllegalArgumentException - - you only need to catch this when the record text isn't hard-coded
Method Detail

getLocation

public String getLocation()
Return the Location of related TXT records for this RP record.

Returns:
the Location of related TXT records

getResponsiblePerson

public ElectronicMailAddress getResponsiblePerson()
Return the Responsible Person eMail address for this RP record.

Returns:
the Responsible Person eMail address

toString

public String toString()
Description copied from class: RR
Convert record to String.

Specified by:
toString in class RR
Returns:
This record, represented as a human-readable string (note that some record types include raw binary data and can't be converted to a string; in such cases, the class should provide a toBytes() convenience method)