|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jwall.web.audit.rules.PersistentCollectionExtractor
public class PersistentCollectionExtractor
This class provides an extractor method for scores to be read from an event's K section.
| Constructor Summary | |
|---|---|
PersistentCollectionExtractor()
|
|
| Method Summary | |
|---|---|
String |
extract(String feature,
AuditEvent event)
Extract all values for the specified feature from the given event. |
static Map<String,String> |
extractScores(AuditEvent evt)
This method extracts scores and environment variables from the given event by effectively simulating the actions fired by this event which are included in the K section of the event. |
static Map<String,String> |
extractScores(AuditEvent evt,
Map<String,String> env)
This method extracts scores and environment variables in the same way as the method above, but uses the specified map as an initial start to evaluate initial parameters. |
Set<String> |
getVariables(AuditEvent event)
This method extracts all available feature names for the given event. |
static Map<String,String> |
processRuleLog(String ruleLog,
Map<String,String> env)
|
static String |
removeQuotes(String s)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistentCollectionExtractor()
| Method Detail |
|---|
public static Map<String,String> extractScores(AuditEvent evt)
throws Exception
This method extracts scores and environment variables from the given event by effectively simulating the actions fired by this event which are included in the K section of the event.
If no K section is available, this method simply returns an empty map.
evt -
Exception
public static Map<String,String> processRuleLog(String ruleLog,
Map<String,String> env)
public static Map<String,String> extractScores(AuditEvent evt,
Map<String,String> env)
throws Exception
s -
Exceptionpublic static String removeQuotes(String s)
public Set<String> getVariables(AuditEvent event)
FeatureExtractor
getVariables in interface FeatureExtractor<AuditEvent,String>
public String extract(String feature,
AuditEvent event)
FeatureExtractor
extract in interface FeatureExtractor<AuditEvent,String>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||