public class HttpRequestActivity extends AbstractReplaceableActivity
HttpRequest, 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 |
|---|
HttpRequestActivity(PcapActivity source,
org.krakenapps.pcap.decoder.http.HttpRequest request)
Constructs a new request activity and replaces the pcap source activity on which this event occurred.
|
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getClientAddress() |
String |
getDestinationAddressAsString()
An address that can be interpreted as the destination address for this activity.
|
org.krakenapps.pcap.decoder.http.HttpMethod |
getHttpMethod() |
List<org.apache.http.NameValuePair> |
getHttpQueryParameters() |
String |
getHttpQueryString() |
org.jnetpcap.protocol.tcpip.Http |
getHttpRequest() |
org.krakenapps.pcap.decoder.http.HttpVersion |
getHttpVersion() |
PcapActivity |
getPcapActivity() |
String |
getRequestHeader(String key) |
Map<String,String> |
getRequestHeaderMap() |
InetSocketAddress |
getServerAddress() |
String |
getSourceAddressAsString()
An address that can be interpreted as the source address for this activity.
|
URL |
getUrl() |
String |
toString() |
isReplaced, replaceActivity, setReplacedaddOptionalField, addPropertyChangeListener, addPropertyChangeListener, extendActivity, getActivityType, getCompoundFrameNumbers, getDescription, getEndInstant, getEndTimestamp, getOptionalFields, 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, getEndInstant, getEndTimestamp, getOptionalFields, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, setExcludedFromOutputpublic HttpRequestActivity(PcapActivity source, org.krakenapps.pcap.decoder.http.HttpRequest request)
URLEncodedUtils.source - the Pcap activity on which this activity occurredrequest - the decoded Http requestpublic org.krakenapps.pcap.decoder.http.HttpVersion getHttpVersion()
public InetSocketAddress getServerAddress()
public InetSocketAddress getClientAddress()
public org.krakenapps.pcap.decoder.http.HttpMethod getHttpMethod()
public String getHttpQueryString()
public List<org.apache.http.NameValuePair> getHttpQueryParameters()
public String getRequestHeader(String key)
key - the header keypublic Map<String,String> getRequestHeaderMap()
public PcapActivity getPcapActivity()
public URL getUrl()
public org.jnetpcap.protocol.tcpip.Http getHttpRequest()
public String getSourceAddressAsString()
ActivitygetSourceAddressAsString in interface ActivitygetSourceAddressAsString in class AbstractActivitypublic String getDestinationAddressAsString()
ActivitygetDestinationAddressAsString in interface ActivitygetDestinationAddressAsString in class AbstractActivitypublic String toString()
toString in class AbstractActivityCopyright © 2013–2015 Institute of networks and security. All rights reserved.