|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasen.config.JasenConfiguration
Holds the configuration for the engine.
By default, the configuration file used is the internal configuration located in the jasen-config folder which MUST be in the classpath
An alternate configuration can be loaded by specifying an alternal InputStream in the init method of the core Jasen class
Jasen.init(InputStream)
,
Jasen.init(String)
,
Serialized FormField Summary | |
static String |
DEFAULT_CONFIG_PATH
|
Constructor Summary | |
JasenConfiguration()
Constructs a new configuration instance |
Method Summary | |
void |
addPluginConfiguration(JasenPluginConfiguration config)
Adds a plugin configuration |
String |
getAutoUpdateCheckOnStartup()
Gets the value of the auto update check-on-startup configuration. |
String |
getAutoUpdateEnabled()
Gets the value of the auto update enabled configuration. |
String |
getAutoUpdateErrorHandler()
Gets the class name of the error handler to use in the auto update engine. |
String |
getAutoUpdateFrequency()
Gets the frequency of the auto-update engine in minutes |
String |
getAutoUpdateParcel()
Gets the name of the (XML) file which resides on the update server and which contains the update parcel information |
String |
getAutoUpdateReadBuffer()
Gets the size (in bytes) of the buffer to use when downloading updates |
String |
getAutoUpdateReadTimout()
Gets the timeout (in milliseconds) to be used when reading update information from the update server |
String |
getAutoUpdateUrl()
Gets the URL from which updates are downloaded |
String |
getBoundary()
Gets the "boundary" condition for the scanner. |
String |
getCalculator()
Gets the FQCN of the calculator used to compute the results of a scan |
String |
getConfidence()
Gets the "confidence" rating for the engine. |
String |
getDnsResolver()
Gets the FQCN of the DNS Resolver used to resolve DNS records |
String |
getErrorHandler()
Gets the FQCN of the error handler used to handle errors which are otherwise unable to be handled |
String |
getEsf()
Returns the Effective Size Factor. |
String |
getFtt()
Gets the Few Token Threshold for the scanner The Few Token Threshold refers to the threshold below which an alternate algorithm is used by the RobinsonScanner to determine the internal Chi Square value |
String |
getGuess()
The guess is the value ascribed to result when no definative information about the nature of the email could be deduced |
String |
getHeaderParser()
Gets the FQCN of the parser used to parse received headers |
String |
getInetResolver()
Gets the FQCN of the Inet Resolver used to resolve InetAddress records |
String |
getLibPath()
Gets the classpath-relative path to the primary library repository. |
String |
getMimeParser()
Gets the FQCN of the parser used to parse MimeMessages |
JasenParserConfiguration |
getParserConfiguration()
Gets the configuration for the native HTML parser. |
List |
getPluginConfigurations()
Gets the list of configurations which pertain to the plugins used by the engine |
String |
getResult()
Gets the FQCN of the result class returned by a call to scan |
String |
getTokenizer()
Gets the FQCN of the tokenizer used to reduce the email to a set of tokens (words) |
String |
getTokenLimit()
Gets the max number of tokens extracted from a message |
void |
setAutoUpdateCheckOnStartup(String autoUpdateCheckOnStartup)
Sets the value of the auto update check-on-startup configuration. |
void |
setAutoUpdateEnabled(String autoUpdateEnabled)
Sets the value of the auto update enabled configuration. |
void |
setAutoUpdateErrorHandler(String autoUpdateErrorHandler)
Sets the class name of the error handler to use in the auto update engine. |
void |
setAutoUpdateFrequency(String autoUpdateFrequency)
Sets the frequency of the auto-update engine in minutes |
void |
setAutoUpdateParcel(String autoUpdateParcel)
Gets the name of the (XML) file which resides on the update server and which contains the update parcel information |
void |
setAutoUpdateReadBuffer(String autoUpdateReadBuffer)
Sets the size (in bytes) of the buffer to use when downloading updates |
void |
setAutoUpdateReadTimout(String autoUpdateReadTimout)
Sets the timeout (in milliseconds) to be used when reading update information from the update server |
void |
setAutoUpdateUrl(String autoUpdateUrl)
Sets the URL from which updates are downloaded |
void |
setBoundary(String boundary)
Sets the "boundary" condition for the scanner. |
void |
setCalculator(String probabilityCalculatorClass)
Sets the FQCN of the calculator used to compute the results of a scan |
void |
setConfidence(String confidence)
Gets the "confidence" rating for the engine. |
void |
setDnsResolver(String dnsResolver)
Sets the FQCN of the DNS Resolver used to resolve DNS records |
void |
setErrorHandler(String errorHandler)
Sets the FQCN of the error handler used to handle errors which are otherwise unable to be handled |
void |
setEsf(String esf)
Sets the Effective Size Factor. |
void |
setFtt(String ftt)
Gets the Few Token Threshold for the scanner The Few Token Threshold refers to the threshold below which an alternate algorithm is used by the RobinsonScanner to determine the internal Chi Square value |
void |
setGuess(String guess)
The guess is the value ascribed to result when no definative information about the nature of the email could be deduced |
void |
setHeaderParser(String headerParserClass)
Sets the FQCN of the parser used to parse received headers |
void |
setInetResolver(String inetResolver)
Sets the FQCN of the Inet Resolver used to resolve InetAddress records |
void |
setLibPath(String libPath)
Sets the classpath-relative path to the primary library repository. |
void |
setMimeParser(String mimeParserClass)
Sets the FQCN of the parser used to parse MimeMessages |
void |
setParserConfiguration(JasenParserConfiguration parserConfiguration)
Sets the configuration for the native HTML parser |
void |
setPluginConfigurations(List pluginConfigurations)
Sets the list of configurations which pertain to the plugins used by the engine |
void |
setResult(String result)
Sets the FQCN of the result class returned by a call to scan |
void |
setTokenizer(String textTokenizerClass)
Sets the FQCN of the tokenizer used to reduce the email to a set of tokens (words) |
void |
setTokenLimit(String tokenLimit)
Sets the max number of tokens extracted from a message |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String DEFAULT_CONFIG_PATH
Constructor Detail |
public JasenConfiguration()
Method Detail |
public String getHeaderParser()
public void setHeaderParser(String headerParserClass)
headerParserClass
- public String getMimeParser()
public void setMimeParser(String mimeParserClass)
mimeParserClass
- public List getPluginConfigurations()
JasenPluginConfiguration
public void setPluginConfigurations(List pluginConfigurations)
pluginConfigurations
- JasenPluginConfiguration
public void addPluginConfiguration(JasenPluginConfiguration config)
config
- JasenPluginConfiguration
public String getCalculator()
ProbabilityCalculator
public void setCalculator(String probabilityCalculatorClass)
probabilityCalculatorClass
- ProbabilityCalculator
public String getTokenizer()
public void setTokenizer(String textTokenizerClass)
textTokenizerClass
- public String getResult()
org.jasen.core.engine.Jasen#scan(MimeMessage)
public void setResult(String result)
result
- JasenScanner.scan(MimeMessage)
public String getConfidence()
RobinsonScanner
public void setConfidence(String confidence)
confidence
- A value between 0.0 and 1.0RobinsonScanner
public String getEsf()
RobinsonScanner
public void setEsf(String esf)
esf
- A value between 0.0 and 1.0RobinsonScanner
public String getGuess()
public void setGuess(String guess)
guess
- A value between 0.0 and 1.0public String getFtt()
RobinsonScanner
public void setFtt(String ftt)
ftt
- Must be > 0RobinsonScanner
public String getTokenLimit()
public void setTokenLimit(String tokenLimit)
tokenLimit
- public String getDnsResolver()
public void setDnsResolver(String dnsResolver)
dnsResolver
- public String getInetResolver()
public void setInetResolver(String inetResolver)
public String getErrorHandler()
public void setErrorHandler(String errorHandler)
errorHandler
- public String getBoundary()
public void setBoundary(String boundary)
boundary
- A value between 0.0 and 1.0public String getAutoUpdateFrequency()
public void setAutoUpdateFrequency(String autoUpdateFrequency)
autoUpdateFrequency
- public String getAutoUpdateUrl()
public void setAutoUpdateUrl(String autoUpdateUrl)
autoUpdateUrl
- public String getAutoUpdateEnabled()
public void setAutoUpdateEnabled(String autoUpdateEnabled)
autoUpdateEnabled
- A String representation of a boolean value which indicates whether the auto update engine will be enabledpublic String getAutoUpdateCheckOnStartup()
public void setAutoUpdateCheckOnStartup(String autoUpdateCheckOnStartup)
autoUpdateCheckOnStartup
- A String representation of a boolean value which indicates whether the auto update engine will check for updates upon engine startpublic String getAutoUpdateErrorHandler()
public void setAutoUpdateErrorHandler(String autoUpdateErrorHandler)
autoUpdateErrorHandler
- The FQCN of the error handler to use in the auto update engine.public String getAutoUpdateParcel()
public void setAutoUpdateParcel(String autoUpdateParcel)
autoUpdateParcel
- The filename of the update parcelpublic String getAutoUpdateReadBuffer()
public void setAutoUpdateReadBuffer(String autoUpdateReadBuffer)
autoUpdateReadBuffer
- The size as a String representation of a long valuepublic String getAutoUpdateReadTimout()
public void setAutoUpdateReadTimout(String autoUpdateReadTimout)
autoUpdateReadTimout
- The timeout as a String representation of a longpublic String getLibPath()
That is, the folder in which the JAR files for the engine reside
public void setLibPath(String libPath)
That is, the folder in which the JAR files for the engine reside
libPath
- A String representation of the lib pathpublic JasenParserConfiguration getParserConfiguration()
public void setParserConfiguration(JasenParserConfiguration parserConfiguration)
parserConfiguration
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |