|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.jmdns.impl.DNSMessage
javax.jmdns.impl.DNSOutgoing
public final class DNSOutgoing
An outgoing DNS message.
Field Summary | |
---|---|
static boolean |
USE_DOMAIN_NAME_COMPRESSION
This can be used to turn off domain name compression. |
Fields inherited from class javax.jmdns.impl.DNSMessage |
---|
_additionals, _answers, _authoritativeAnswers, _questions, MULTICAST, UNICAST |
Constructor Summary | |
---|---|
DNSOutgoing(int flags)
Create an outgoing multicast query or response. |
|
DNSOutgoing(int flags,
boolean multicast)
Create an outgoing query or response. |
Method Summary | |
---|---|
void |
addAnswer(DNSRecord rec,
long now)
Add an answer to the message. |
void |
addAuthorativeAnswer(DNSRecord rec)
Add an authorative answer to the message. |
void |
addQuestion(DNSQuestion rec)
Add a question to the message. |
boolean |
isQuery()
Check if the message is a query. |
java.lang.String |
toString()
|
Methods inherited from class javax.jmdns.impl.DNSMessage |
---|
getAdditionals, getAllAnswers, getAnswers, getAuthorities, getFlags, getId, getNumberOfAdditionals, getNumberOfAnswers, getNumberOfAuthorities, getNumberOfQuestions, getQuestions, isEmpty, isMulticast, isResponse, isTruncated, setFlags, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static boolean USE_DOMAIN_NAME_COMPRESSION
Constructor Detail |
---|
public DNSOutgoing(int flags)
flags
- public DNSOutgoing(int flags, boolean multicast)
flags
- multicast
- Method Detail |
---|
public void addQuestion(DNSQuestion rec) throws java.io.IOException
rec
-
java.io.IOException
public void addAnswer(DNSRecord rec, long now) throws java.io.IOException
rec
- now
-
java.io.IOException
public void addAuthorativeAnswer(DNSRecord rec) throws java.io.IOException
rec
-
java.io.IOException
public boolean isQuery()
DNSMessage
isQuery
in class DNSMessage
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |