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_INSTANT
source
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, 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 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 AbstractActivity
Copyright © 2013–2015 Institute of networks and security. All rights reserved.