|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.core.Globals
public class Globals
Globals
gives access to the server
properties used when starting the bot.
Method Summary | |
---|---|
static java.lang.String |
getBotNamePredicate()
Returns the predicate name with which the bot's name is associated. |
static int |
getCategoryLoadNotifyInterval()
|
static java.lang.String |
getClientNamePredicate()
Returns the predicate name with which the client's name is associated. |
static java.lang.String |
getHostName()
Returns the host name. |
static int |
getHttpPort()
Returns the http port number. |
static java.lang.String |
getInfiniteLoopInput()
Returns the input to match if an infinite loop exception is thrown. |
static java.lang.String |
getMergePolicy()
Returns the merge policy. |
static java.lang.String |
getPredicateEmptyDefault()
Returns the default value for undefined predicate values. |
static java.util.Properties |
getProperties()
|
static java.lang.String |
getProperty(java.lang.String propertyName)
Returns the value of a property string. |
static java.lang.String |
getProperty(java.lang.String propertyName,
java.lang.String defaultValue)
Returns the value of a property string (allows specifying a default). |
static int |
getResponseTimeout()
Returns the response timeout. |
static java.lang.String |
getStartupFilePath()
Returns the startup file path. |
static java.lang.String |
getSystemDirectory()
Returns the directory in which to run system commands. |
static java.lang.String |
getSystemPrefix()
Returns the prefix for system commands. |
static java.lang.String |
getTargetsAIMLPath()
Returns the path to the targets file for dumping generated AIML. |
static java.lang.String |
getTargetsDataPath()
Returns the path to the data file for dumping targeting data. |
static int |
getTargetSkip()
Returns the response period for invoking targeting. |
static java.lang.String |
getVersion()
Returns the version string. |
static boolean |
isLoaded()
Returns whether Globals is loaded. |
static boolean |
isWatcherActive()
Returns whether the AIML Watcher is active. |
static java.lang.String |
javaScriptInterpreter()
Returns the fully-qualified class name of the JavaScript interpteter (if any). |
static boolean |
jsAccessAllowed()
Returns whether the javascript tag is allowed. |
static void |
load(java.lang.String path)
Loads properties from a path. |
static void |
loadProperties()
Loads some global values from a properties object. |
static boolean |
nonAIMLRequireNamespaceQualification()
Returns whether to require namespace qualifiers on non-AIML tags. |
static boolean |
osAccessAllowed()
Returns whether the system tag is allowed. |
static int |
predicateValueCacheMax()
Returns the number of predicate values to cache. |
static void |
setHttpPort(int port)
Sets the http port number. |
static boolean |
showConsole()
Returns whether to show the console. |
static boolean |
showMatchTrace()
Returns whether to show match trace messages on the console. |
static boolean |
supportDeprecatedTags()
Returns whether to support deprecated "AIML 0.9" tags. |
static boolean |
useHeart()
Returns whether to use the Heart. |
static boolean |
useShell()
Returns whether to use the command-line shell. |
static boolean |
useTargeting()
Returns whether to use targeting. |
static boolean |
warnAboutDeprecatedTags()
Returns whether to warn about deprecated "AIML 0.9" tags. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void load(java.lang.String path)
path
- public static void loadProperties()
public static boolean isLoaded()
public static java.lang.String getVersion()
public static java.lang.String getStartupFilePath()
public static java.lang.String getClientNamePredicate()
public static java.lang.String getBotNamePredicate()
public static java.lang.String getPredicateEmptyDefault()
public static java.lang.String getInfiniteLoopInput()
public static boolean showConsole()
public static boolean showMatchTrace()
public static boolean isWatcherActive()
AIML Watcher
is active.
AIML Watcher
is activepublic static boolean useHeart()
public static boolean useShell()
public static java.lang.String getMergePolicy()
public static boolean useTargeting()
public static java.lang.String getTargetsAIMLPath()
public static java.lang.String getTargetsDataPath()
public static int getTargetSkip()
public static int getCategoryLoadNotifyInterval()
public static void setHttpPort(int port)
port
- the port numberpublic static int getHttpPort()
public static int getResponseTimeout()
public static java.lang.String getHostName()
public static boolean supportDeprecatedTags()
public static boolean warnAboutDeprecatedTags()
public static boolean nonAIMLRequireNamespaceQualification()
public static int predicateValueCacheMax()
public static boolean osAccessAllowed()
system
tag is allowed.
system
tag is allowedpublic static boolean jsAccessAllowed()
javascript
tag is allowed.
javascript
tag is allowedpublic static java.lang.String javaScriptInterpreter()
public static java.lang.String getSystemDirectory()
public static java.lang.String getSystemPrefix()
public static java.lang.String getProperty(java.lang.String propertyName)
propertyName
- the name of the property whose value is wanted
public static java.lang.String getProperty(java.lang.String propertyName, java.lang.String defaultValue)
propertyName
- the name of the property whose value is wantedthe
- default if no value is defined for the property
public static java.util.Properties getProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |