public class SearchDispatchRpcGwtServlet extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements SearchRpcService, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Class and Description |
|---|---|
class |
SearchDispatchRpcGwtServlet.MaxAgeSoftReference<T>
An extension to SoftReference that stores an expiration time for the
value stored in the SoftReference.
|
class |
SearchDispatchRpcGwtServlet.MaxSizeMap<K,V>
This class acts like an LRU cache, automatically purging contents when it gets above a certain size.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cachingEnabled |
protected Map<String,SearchDispatchRpcGwtServlet.MaxAgeSoftReference<SearchResultInfo>> |
searchCache |
protected int |
searchCacheMaxAgeSeconds |
protected int |
searchCacheMaxSize |
| Constructor and Description |
|---|
SearchDispatchRpcGwtServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
SearchResultInfo |
cachingSearch(SearchRequestInfo searchRequest) |
SearchResultInfo |
search(SearchRequestInfo searchRequest)
Delegates to the service responsible for the given search type key
|
void |
setCachingEnabled(boolean cachingEnabled) |
void |
setIdTranslatorFilter(IdTranslatorFilter idTranslatorFilter) |
void |
setSearchCacheMaxAgeSeconds(int searchCacheMaxAgeSeconds) |
void |
setSearchCacheMaxSize(int searchCacheMaxSize) |
void |
setSearchDispatcher(SearchService searchDispatcher) |
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicedestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, logprotected boolean cachingEnabled
protected int searchCacheMaxSize
protected int searchCacheMaxAgeSeconds
protected Map<String,SearchDispatchRpcGwtServlet.MaxAgeSoftReference<SearchResultInfo>> searchCache
public SearchDispatchRpcGwtServlet()
public SearchResultInfo search(SearchRequestInfo searchRequest)
search in interface SearchRpcServicesearchRequest - MissingParameterExceptionpublic SearchResultInfo cachingSearch(SearchRequestInfo searchRequest)
cachingSearch in interface SearchRpcServicepublic void afterPropertiesSet() throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setSearchDispatcher(SearchService searchDispatcher)
public void setIdTranslatorFilter(IdTranslatorFilter idTranslatorFilter)
public void setCachingEnabled(boolean cachingEnabled)
public void setSearchCacheMaxSize(int searchCacheMaxSize)
public void setSearchCacheMaxAgeSeconds(int searchCacheMaxAgeSeconds)
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.