public class AdjacencyPairService extends AbstractAdjacencyPairService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS| Constructor and Description |
|---|
AdjacencyPairService() |
AdjacencyPairService(ServiceContext serviceContext) |
| Modifier and Type | Method and Description |
|---|---|
protected Calendar |
doGetLastUpdate() |
protected Collection<AdjacencyPair> |
doSearch(String category,
Language language,
String firstTurn,
MatchingMethod matchingMethod)
Gets a list of responses corresponding to the specified utterance.
|
protected void |
setLanguages(String[] languages) |
protected void |
setTableName(String tableName) |
search, setSupportedMatchingMethodsgetSupportedLanguageCollection, getSupportedLanguagePairCollection, getSupportedLanguages, setSupportedLanguageCollection, setSupportedLanguagesacquireSemaphore, checkStartupException, convertLanguagePairs, convertLanguages, getCurrentServiceContext, getDoDoubleSearch, getEliminateDuplicates, getInitParameter, getInitParameterBoolean, getInitParameterInt, getInitParameterLong, getInitParameters, getInitParameterString, getInitParameterUsingTransformer, getLastUpdate, getLogListener, getMaxResults, getMaxWaitMillisForExternalProcess, getRequestMimeHeaders, getServiceContext, getWorkDirectory, getWorkFile, log, parseDateMacro, processEnd, processEnd, processLap, processStart, releaseSemaphore, setCurrentServiceContext, setDoubleSearchResults, setEliminateDuplicates, setLogListener, setMaxResults, setMaxThreads, setMaxWaitMillisForExternalProcess, setMaxWaitMillisForThread, setMeasureProcessTime, setProcessTimeWarningThreasholdMillis, setStartupExceptiongetComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceNamepublic AdjacencyPairService()
public AdjacencyPairService(ServiceContext serviceContext)
protected Collection<AdjacencyPair> doSearch(String category, Language language, String firstTurn, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
AbstractAdjacencyPairServicedoSearch in class AbstractAdjacencyPairServicecategory - Categorylanguage - Language of utterance (RFC3066 compliant)firstTurn - Utterance(required)matchingMethod - Search methodInvalidParameterException - language, firstPart or matchingMethod is null or else an empty string.language does not comply with RFC3066. String not provided for by matchingMethodProcessFailedExceptionprotected Calendar doGetLastUpdate() throws ProcessFailedException
doGetLastUpdate in class AbstractServiceProcessFailedExceptionprotected void setTableName(String tableName)
protected void setLanguages(String[] languages)