SK.gnome.dwarf.utils.dns
Class Resource

java.lang.Object
  extended bySK.gnome.dwarf.utils.dns.Record
      extended bySK.gnome.dwarf.utils.dns.Resource
Direct Known Subclasses:
AResource, CNAMEResource, HINFOResource, MXResource, NSResource, PTRResource, RPResource, SOAResource, TXTResource, WKSResource

public class Resource
extends Record

This class represents a generic DNS resource.


Field Summary
protected  byte[] rdata
          The raw record data.
protected  int ttl
          The TTL value.
 
Fields inherited from class SK.gnome.dwarf.utils.dns.Record
clazz, name, type
 
Constructor Summary
protected Resource(java.lang.String name, int type, int clazz, int ttl)
          Creates a new Resource.
protected Resource(java.lang.String name, int type, int clazz, int ttl, byte[] rdata)
          Creates a new Resource with the given raw data.
 
Method Summary
 byte[] getRData()
          Returns the raw record data.
 long getTTL()
          Returns the TTL value.
 
Methods inherited from class SK.gnome.dwarf.utils.dns.Record
getClassString, getClazz, getName, getType, getTypeString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ttl

protected int ttl
The TTL value.


rdata

protected byte[] rdata
The raw record data.

Constructor Detail

Resource

protected Resource(java.lang.String name,
                   int type,
                   int clazz,
                   int ttl)
Creates a new Resource.

Parameters:
name - the resource name
type - the resource type
clazz - the protocol class
ttl - the TTL value

Resource

protected Resource(java.lang.String name,
                   int type,
                   int clazz,
                   int ttl,
                   byte[] rdata)
Creates a new Resource with the given raw data.

Parameters:
name - the resource name
type - the resource type
clazz - the protocol class
ttl - the TTL value
rdata - the raw record data
Method Detail

getTTL

public long getTTL()
Returns the TTL value.

Returns:
the TTL value

getRData

public byte[] getRData()
Returns the raw record data.

Returns:
the raw octets


Copyright (c) 1999-2005, Gnome Ltd. All rights reserved.