public class HttpResponseActivity extends AbstractReplaceableActivity
HttpResponse, that was decoded by the Kraken library.
The goal of this class is to provide a read-only interface to the encountered Http-related information, however,
currently the actual content buffer that was used by the decoder can both be read from and written to.
Furthermore, a JNetPcap representation is provided in addition to the Kraken-representation.PROPERTY_ADD_FRAME_NUMBERS, PROPERTY_NEW_END_INSTANT, PROPERTY_NEW_START_INSTANTsource| Constructor and Description |
|---|
HttpResponseActivity(PcapActivity source,
org.krakenapps.pcap.decoder.http.HttpResponse response)
Constructs a new response activity and replaces the source pcap activity on which this event occurred.
|
| Modifier and Type | Method and Description |
|---|---|
org.jnetpcap.protocol.tcpip.Http |
getHttpResponse() |
org.krakenapps.pcap.decoder.http.HttpVersion |
getHttpVersion() |
PcapActivity |
getPcapActivity() |
Map<String,String> |
getResponseHeaderMap() |
int |
getResponseStatusCode() |
String |
getResponseStatusLine() |
String |
toString() |
isReplaced, replaceActivity, setReplacedaddOptionalField, addPropertyChangeListener, addPropertyChangeListener, extendActivity, getActivityType, getCompoundFrameNumbers, getDescription, getDestinationAddressAsString, getEndInstant, getEndTimestamp, getOptionalFields, getSourceAddressAsString, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, removeReplacedActivity, setDescription, setDestinationAddress, setEndInstant, setExcludedFromOutput, setSourceAddress, setStartInstant, writeCsvRecordgetSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, getActivityType, getCompoundFrameNumbers, getDescription, getDestinationAddressAsString, getEndInstant, getEndTimestamp, getOptionalFields, getSourceAddressAsString, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, setExcludedFromOutputpublic HttpResponseActivity(PcapActivity source, org.krakenapps.pcap.decoder.http.HttpResponse response)
HttpHeader, if it fails
the failed header is stored as encountered.source - the pcap activity on which this event occurredresponse - the Http response, decoded by the Kraken librarypublic org.krakenapps.pcap.decoder.http.HttpVersion getHttpVersion()
public int getResponseStatusCode()
public String getResponseStatusLine()
public Map<String,String> getResponseHeaderMap()
public PcapActivity getPcapActivity()
public org.jnetpcap.protocol.tcpip.Http getHttpResponse()
public String toString()
toString in class AbstractActivityCopyright © 2013–2015 Institute of networks and security. All rights reserved.