public class HttpActivity extends AbstractReplaceableActivity
HttpRequestActivity
and a HttpResponseActivity.
Usually instances of this class are created directly by Drools rules, i.e. a request is matched to a response
by one or several rules.
Additionally, this class defines several optional fields, e.g. a potential preceding Dns-Match to this Http-Activity
and multiple HttpImageActivity objects may be
aggregated as well.PROPERTY_ADD_FRAME_NUMBERS, PROPERTY_NEW_END_INSTANT, PROPERTY_NEW_START_INSTANTsource| Constructor and Description |
|---|
HttpActivity(HttpRequestActivity req,
HttpResponseActivity resp)
Constructs a new Http-Activity and replaces both, the passed request and the response.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addImageActivity(HttpImageActivity imgAct)
Adds and replaces a Http image activity which origins may be considered to lie within this HTTP activity.
|
String |
getDestinationAddressAsString()
An address that can be interpreted as the destination address for this activity.
|
DnsActivity |
getDnsMatch()
The interpretation of this field depends on the actual specification of the rule that filled this variable in the
first place.
|
Set<HttpImageActivity> |
getImageActivities()
The interpretation of this field depends on the actual definition of the Drools rules that will fill this set.
|
HttpRequestActivity |
getRequest() |
HttpResponseActivity |
getResponse() |
String |
getSourceAddressAsString()
An address that can be interpreted as the source address for this activity.
|
void |
setDnsMatch(DnsActivity dnsMatch)
Calling this method results in the following actions:
if this method was called previously, the old dnsMatch object is will no longer considered to be a
replaced activity and the assigned frames are removed from the frame set
the dnsMatch reference is saved and the DNS activity will be replaced
|
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 HttpActivity(HttpRequestActivity req, HttpResponseActivity resp)
req - the request that is followed by ...resp - ... the response for the requestpublic HttpResponseActivity getResponse()
getRequest()public HttpRequestActivity getRequest()
getResponse()public DnsActivity getDnsMatch()
public void setDnsMatch(DnsActivity dnsMatch)
dnsMatch - a DNS activity that potentially led to this HTTP activity (speculative)public Set<HttpImageActivity> getImageActivities()
public void addImageActivity(HttpImageActivity imgAct)
imgAct - a image activity that was caused by this HTTP activitypublic 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.