|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lavantech.net.dns.ResourceRecord com.lavantech.net.dns.WKSRecord
WKSRecord represents the DNS WKS Record.
Constructor Summary | |
WKSRecord(java.lang.String rname,
int rtype,
int rclass,
long ttl,
java.net.InetAddress ip,
int protNum,
byte[] bitmap)
Creates a WKSRecord with all the required information. |
Method Summary | |
java.net.InetAddress |
getInetAddress()
Returns the IP Address |
int |
getProtocolNumber()
Returns the Protocol number |
int[] |
getServicePorts()
Returns an array of port numbers on which service are available |
java.lang.String |
toString()
Returns a String representation of the record. |
Methods inherited from class com.lavantech.net.dns.ResourceRecord |
getResourceClass, getResourceName, getResourceType, getTTL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WKSRecord(java.lang.String rname, int rtype, int rclass, long ttl, java.net.InetAddress ip, int protNum, byte[] bitmap)
rname
- Record Name (Hostname)rtype
- Record Typerclass
- Record Classttl
- Time to Live, time in seconds after which the record will expire.ip
- IP Address for the host.protNum
- Protocol number (TCP, UDP...)bitmap
- Bitmap that represents the service port numbers.Method Detail |
public java.net.InetAddress getInetAddress()
public int getProtocolNumber()
public int[] getServicePorts()
public java.lang.String toString()
toString
in class ResourceRecord
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |