SK.gnome.dwarf.utils.dns
Class Record

java.lang.Object
  extended bySK.gnome.dwarf.utils.dns.Record
Direct Known Subclasses:
Question, Resource

public abstract class Record
extends java.lang.Object

This class represents a generic resource record.


Field Summary
protected  int clazz
          The resource protocol class.
protected  java.lang.String name
          The resource name.
protected  int type
          The resource type.
 
Constructor Summary
protected Record(java.lang.String name, int type, int clazz)
          Creates a new DNS record.
 
Method Summary
protected  java.lang.String getClassString()
          Returns the string represenation of the protocol class.
 int getClazz()
          Returns the protocol class.
 java.lang.String getName()
          Returns the resource name.
 int getType()
          Returns the resource type.
protected  java.lang.String getTypeString()
          Returns the string represenation of the resource type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The resource name.


type

protected int type
The resource type.


clazz

protected int clazz
The resource protocol class.

Constructor Detail

Record

protected Record(java.lang.String name,
                 int type,
                 int clazz)
Creates a new DNS record.

Parameters:
name - the domain name
type - the resource type
clazz - the protocol class
Method Detail

getTypeString

protected java.lang.String getTypeString()
Returns the string represenation of the resource type.

Returns:
the resource type string

getClassString

protected java.lang.String getClassString()
Returns the string represenation of the protocol class.

Returns:
the protocol class string

getName

public java.lang.String getName()
Returns the resource name.

Returns:
the resource name

getType

public int getType()
Returns the resource type.

Returns:
the resource type

getClazz

public int getClazz()
Returns the protocol class.

Returns:
the protocol class

toString

public java.lang.String toString()


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