atg.search.formhandlers
Class TypeAheadDroplet
java.lang.Object
atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.nucleus.TimedOperationService
atg.nucleus.servlet.ServletService
atg.nucleus.servlet.HttpServletService
atg.servlet.DynamoServlet
atg.search.formhandlers.TypeAheadDroplet
- All Implemented Interfaces:
- NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, ParameterServlet, java.util.EventListener, javax.servlet.Servlet
public class TypeAheadDroplet
- extends DynamoServlet
User: sgreene Date: Mar 3, 2009 Time: 4:45:14 PM
This is droplet that returns a simple list of response strings for a typeahead request.
Within QueryConsole it demonstrates one way of integrating with the Scriptaculous javascript library
to implement a type ahead drop-down control.
Field Summary |
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
DEFAULT_LOG_TRACE_STATUS |
Methods inherited from class atg.nucleus.GenericService |
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_VERSION
public static java.lang.String CLASS_VERSION
- Class version string
TypeAheadDroplet
public TypeAheadDroplet()
service
public void service(DynamoHttpServletRequest request,
DynamoHttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Services the request
- Overrides:
service
in class DynamoServlet
- Parameters:
request
- includes "text" param (user input text), "sort" param (a string converitble to type {@link atg.search.routing.command.search.TypeAheadSortType),
"sortOrder" param (ascending or descending), "environment" param (name of search envionment target, and "language" param (language to use in the TypeAheadRequest),
"context" (SearchContext object)response
-
- Throws:
javax.servlet.ServletException
java.io.IOException
getSearchRequest
public TypeAheadRequest getSearchRequest()
setSearchRequest
public void setSearchRequest(TypeAheadRequest searchRequest)