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_INSTANT
source
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, setReplaced
addOptionalField, addPropertyChangeListener, addPropertyChangeListener, extendActivity, getActivityType, getCompoundFrameNumbers, getDescription, getEndInstant, getEndTimestamp, getOptionalFields, 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, getEndInstant, getEndTimestamp, getOptionalFields, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, setExcludedFromOutput
public 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()
Activity
getSourceAddressAsString
in interface Activity
getSourceAddressAsString
in class AbstractActivity
public String getDestinationAddressAsString()
Activity
getDestinationAddressAsString
in interface Activity
getDestinationAddressAsString
in class AbstractActivity
public String toString()
toString
in class AbstractActivity
Copyright © 2013–2015 Institute of networks and security. All rights reserved.