public class Message extends Object
| Constructor and Description |
|---|
Message() |
Message(NetworkData data) |
Message(NetworkData data,
boolean partial,
boolean allowFail)
Decode network bytes into a DNS Message
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditional(ResourceRecord rr) |
void |
addAdditional(RRset additional) |
void |
addAnswer(ResourceRecord answer) |
void |
addAnswer(RRset rrset) |
void |
addAuthority(ResourceRecord authority) |
void |
addAuthority(RRset authority) |
Message |
addQuestion(Question question) |
void |
decode(NetworkData buffer) |
List<RRset> |
getAdditional() |
Header |
getHeader() |
int |
maxLength() |
javax.json.JsonObject |
toJson() |
String |
toString() |
Object |
toZone() |
public Message()
public Message(NetworkData data)
public Message(NetworkData data, boolean partial, boolean allowFail)
data - buffer with network datapartial - do not fully decode the message, only the header, questions and OPT record.allowFail - if true, do not throw an exception when decoding fails.public Header getHeader()
public void addAnswer(ResourceRecord answer)
public void addAnswer(RRset rrset)
public void addAuthority(ResourceRecord authority)
public void addAuthority(RRset authority)
public void addAdditional(ResourceRecord rr)
public void addAdditional(RRset additional)
public void decode(NetworkData buffer)
public Object toZone()
public javax.json.JsonObject toJson()
public int maxLength()
Copyright © 2020. All rights reserved.