|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.xbill.DNS.Header
A DNS message header
Message| Constructor Summary | |
Header()
Create a new empty header with a random message id |
|
Header(DataByteInputStream in)
Parses a Header from a stream containing DNS wire format. |
|
Header(int _id)
Create a new empty header. |
|
| Method Summary | |
Object |
clone()
|
int |
getCount(int field)
Retrieves the record count for the given section |
boolean |
getFlag(int bit)
Retrieves a flag |
int |
getID()
Retrieves the message ID |
byte |
getOpcode()
Retrieves the mesasge's opcode |
short |
getRcode()
Retrieves the mesasge's rcode |
String |
printFlags()
Converts the header's flags into a String |
void |
setFlag(int bit)
Sets a flag to the supplied value |
void |
setID(int _id)
Sets the message ID |
void |
setOpcode(byte value)
Sets the message's opcode |
void |
setRcode(short value)
Sets the message's rcode |
String |
toString()
Converts the header into a String |
byte[] |
toWire()
|
void |
unsetFlag(int bit)
Sets a flag to the supplied value |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Header(int _id)
id - The message idpublic Header()
public Header(DataByteInputStream in)
throws IOException
| Method Detail |
public byte[] toWire()
throws IOException
public void setFlag(int bit)
Flagspublic void unsetFlag(int bit)
Flagspublic boolean getFlag(int bit)
Flagspublic int getID()
public void setID(int _id)
public void setRcode(short value)
Rcodepublic short getRcode()
Rcodepublic void setOpcode(byte value)
Opcodepublic byte getOpcode()
Opcodepublic int getCount(int field)
Sectionpublic String printFlags()
public String toString()
public Object clone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||