|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jwall.rbl.dns.QuerySection
public final class QuerySection
This class represents a simple QuerySection.
| Field Summary | |
|---|---|
static int |
QUERY_CLASS_IN
|
static int |
QUERY_TYPE_A
|
static int |
QUERY_TYPE_CNAME
|
static int |
QUERY_TYPE_MX
|
static int |
QUERY_TYPE_NS
|
static int |
QUERY_TYPE_PTR
|
static int |
QUERY_TYPE_SOA
|
static int |
QUERY_TYPE_TXT
|
| Method Summary | |
|---|---|
int |
getQClass()
Returns the query class of this section. |
String |
getQName()
This method returns the query name as a readable string. |
int |
getQType()
Reqturns the query type of this section. |
int |
length()
This method returns the complete length in bytes of this query section. |
static QuerySection |
read(byte[] buf,
int offset)
This method parses a query section from the given buffer. |
byte[] |
toByteArray()
This method returns this query section in form of a byte array, which reflects the appropriate format for sending this section over the wire. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int QUERY_CLASS_IN
public static final int QUERY_TYPE_A
public static final int QUERY_TYPE_NS
public static final int QUERY_TYPE_CNAME
public static final int QUERY_TYPE_SOA
public static final int QUERY_TYPE_PTR
public static final int QUERY_TYPE_MX
public static final int QUERY_TYPE_TXT
| Method Detail |
|---|
public int getQClass()
public int getQType()
public String getQName()
public int length()
public static QuerySection read(byte[] buf,
int offset)
throws Exception
buf - offset -
Exceptionpublic byte[] toByteArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||