org.xbill.DNS
Class WKSRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.WKSRecord
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable
public class WKSRecord
- extends Record
Well Known Services - Lists services offered by this host.
- Author:
- Brian Wellington
Constructor Summary |
WKSRecord(Name name,
int dclass,
long ttl,
java.net.InetAddress address,
int protocol,
int[] services)
Creates a WKS Record from the given data |
Method Summary |
java.net.InetAddress |
getAddress()
Returns the IP address. |
int |
getProtocol()
Returns the IP protocol. |
int[] |
getServices()
Returns the services provided by the host on the specified address. |
Methods inherited from class org.xbill.DNS.Record |
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
WKSRecord
public WKSRecord(Name name,
int dclass,
long ttl,
java.net.InetAddress address,
int protocol,
int[] services)
- Creates a WKS Record from the given data
- Parameters:
address
- The IP addressprotocol
- The IP protocol numberservices
- An array of supported services, represented by port number.
getAddress
public java.net.InetAddress getAddress()
- Returns the IP address.
getProtocol
public int getProtocol()
- Returns the IP protocol.
getServices
public int[] getServices()
- Returns the services provided by the host on the specified address.