-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDNSAnswer.java
More file actions
45 lines (40 loc) · 1.06 KB
/
DNSAnswer.java
File metadata and controls
45 lines (40 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* Defines a funtionality that will be implemented by any
* DNS Record Response. Does not expose a setDataLength method
* because it should be set dynamically when the data field is changed.
*
* @author Chris Blades
* @version 2/25/2010
*/
public interface DNSAnswer extends DNSRecord {
/**
* Returns the Time-to-Live for this Record
*
* @return the time-to-live for this Record
*/
public int getTTL();
/**
* Returns the data portion of this Record.
*
* @return the data contained in this Record.
*/
public DNSResource getData();
/**
* Returns the length of the data in this Record.
*
* @return the length field of this Record
*/
public int getDataLength();
/**
* Set the Time-to-Live for this Record.
*
* @param TTL new Time-to-Live for this Record
*/
public void setTTL(int TTL);
/**
* Set the data contained in this Record.
*
* @param data new data to insert in this record.
*/
public void setData(DNSResource data);
}