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, setSupportedMatchingMethods
getSupportedLanguageCollection, getSupportedLanguagePairCollection, getSupportedLanguages, setSupportedLanguageCollection, setSupportedLanguages
acquireSemaphore, 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, setStartupException
getComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceName
public AdjacencyPairService()
public AdjacencyPairService(ServiceContext serviceContext)
protected Collection<AdjacencyPair> doSearch(String category, Language language, String firstTurn, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
AbstractAdjacencyPairService
doSearch
in class AbstractAdjacencyPairService
category
- 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 matchingMethodProcessFailedException
protected Calendar doGetLastUpdate() throws ProcessFailedException
doGetLastUpdate
in class AbstractService
ProcessFailedException
protected void setTableName(String tableName)
protected void setLanguages(String[] languages)