public class MatchState extends MatchResult implements ICacheLoader<String,MatchResult>
closestSignaturesCount, elapsed, lowestScore, method, nodes, nodesEvaluated, profiles, rootNodesEvaluated, signature, signaturesCompared, signaturesRead, stringsRead, targetUserAgent| Modifier and Type | Method and Description |
|---|---|
MatchResult |
fetch(String key)
Returns the value associated with the key from the source.
|
ArrayList<Profile> |
getExplicitProfiles()
During the process of matching the profiles may vary, for example when
multiple HTTP headers are used.
|
ArrayList<Node> |
getNodesList() |
Profile[] |
getProfiles() |
byte[] |
getTargetUserAgentArray() |
void |
incrLowestScore(int value)
Increments the lowest score recorded for the signature that was found.
|
void |
incrNodesEvaluated()
Increments the nodes evaluated by one.
|
void |
incrStringsRead()
Increments the strings read by one.
|
void |
setLowestScore(int value)
Sets the lowest score to the value provided.
|
getClosestSignaturesCount, getElapsed, getLowestScore, getMethod, getNodesEvaluated, getRootNodesEvaluated, getSignature, getSignaturesCompared, getSignaturesRead, getStringsRead, getTargetUserAgentpublic void incrNodesEvaluated()
public void incrStringsRead()
public void incrLowestScore(int value)
value - to increment by.public void setLowestScore(int value)
value - of new lowest scorepublic ArrayList<Profile> getExplicitProfiles() throws IOException
IOException - if there was a problem accessing data file.public Profile[] getProfiles() throws IOException
getProfiles in class MatchResultIOException - if there was a problem accessing data file.public byte[] getTargetUserAgentArray()
public MatchResult fetch(String key) throws IOException
ICacheLoaderfetch in interface ICacheLoader<String,MatchResult>key - for the value requiredIOException - if there was a problem accessing data file.Copyright © 2015 51Degrees. All rights reserved.