org.xbill.DNS
Class WKSRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.WKSRecord
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable
public class WKSRecord
- extends Record
Well Known Services - Lists services offered by this host.
- Author:
- Brian Wellington
- See Also:
- Serialized Form
|
Constructor Summary |
WKSRecord(Name name,
int dclass,
long ttl,
InetAddress address,
int protocol,
int[] services)
Creates a WKS Record from the given data |
| 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 |
WKSRecord
public WKSRecord(Name name,
int dclass,
long ttl,
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 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.