public class DnsActivity extends AbstractReplaceableActivity
Message
.
The default output stream handler JsonOutputWriterStrategy
will not include the original Message
object due to space conservation issues. Instead, the
available question, answer, authority and additional Record
s are included as lists and the
Header
as it was encountered.PROPERTY_ADD_FRAME_NUMBERS, PROPERTY_NEW_END_INSTANT, PROPERTY_NEW_START_INSTANT
source
Constructor and Description |
---|
DnsActivity(PcapActivity source,
org.xbill.DNS.Message dnsMessage)
Constructs a new DnsActivity, while replacing the source pcap activity and wrapping the decoded DNS message
|
Modifier and Type | Method and Description |
---|---|
List<org.xbill.DNS.Record> |
getAdditionalRecords() |
List<org.xbill.DNS.Record> |
getAnswerRecords() |
List<org.xbill.DNS.Record> |
getAuthorityRecords() |
org.xbill.DNS.Message |
getDnsMessage() |
org.xbill.DNS.Header |
getDnsMessageHeader() |
PcapActivity |
getPcapActivity() |
List<org.xbill.DNS.Record> |
getQuestionRecords() |
boolean |
isResponse() |
String |
toString() |
isReplaced, replaceActivity, setReplaced
addOptionalField, addPropertyChangeListener, addPropertyChangeListener, extendActivity, getActivityType, getCompoundFrameNumbers, getDescription, getDestinationAddressAsString, getEndInstant, getEndTimestamp, getOptionalFields, getSourceAddressAsString, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, removeReplacedActivity, setDescription, setDestinationAddress, setEndInstant, setExcludedFromOutput, setSourceAddress, setStartInstant, writeCsvRecord
getSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, getActivityType, getCompoundFrameNumbers, getDescription, getDestinationAddressAsString, getEndInstant, getEndTimestamp, getOptionalFields, getSourceAddressAsString, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, setExcludedFromOutput
public DnsActivity(PcapActivity source, org.xbill.DNS.Message dnsMessage)
source
- on which the DnsActivity occurred or the final PcapActivity that led to the fully decoded packet.dnsMessage
- the fully decoded DNS contentpublic org.xbill.DNS.Message getDnsMessage()
public List<org.xbill.DNS.Record> getQuestionRecords()
public List<org.xbill.DNS.Record> getAnswerRecords()
public List<org.xbill.DNS.Record> getAuthorityRecords()
public List<org.xbill.DNS.Record> getAdditionalRecords()
public org.xbill.DNS.Header getDnsMessageHeader()
public boolean isResponse()
public PcapActivity getPcapActivity()
public String toString()
toString
in class AbstractActivity
Copyright © 2013–2015 Institute of networks and security. All rights reserved.