|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portlet.widget.servlet.mvc.DictionaryDataController
@Controller @RequestMapping(value="/ajax/dictionary") public class DictionaryDataController
DictionaryDataController handles AJAX requests for a word definition.
| Field Summary | |
|---|---|
protected String |
DICT_ID_PARAM_NAME
|
protected String |
DICT_SERVICE_URL
|
protected org.apache.commons.logging.Log |
log
|
protected String |
WORD_PARAM_NAME
|
| Constructor Summary | |
|---|---|
DictionaryDataController()
|
|
| Method Summary | |
|---|---|
protected String |
getCacheKey(String word,
String dict)
Get a cache key for the specified word and dictionary combination. |
org.springframework.web.servlet.ModelAndView |
getDefinition(javax.servlet.http.HttpServletRequest request,
String word,
String dict)
Get a definition for the specified word from the specified dictionary. |
protected String |
getDefinition(String word,
String dict)
Get the definition from the server. |
void |
setCache(net.sf.ehcache.Cache cache)
Cache of definitions. |
void |
setDictionaryParsingService(IDictionaryParsingService service)
Set the dictionary parsing service to be used to get a definition from the DictService server response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log log
protected final String DICT_SERVICE_URL
protected final String DICT_ID_PARAM_NAME
protected final String WORD_PARAM_NAME
| Constructor Detail |
|---|
public DictionaryDataController()
| Method Detail |
|---|
public void setDictionaryParsingService(IDictionaryParsingService service)
service - public void setCache(net.sf.ehcache.Cache cache)
cache -
@RequestMapping(method=GET)
public org.springframework.web.servlet.ModelAndView getDefinition(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="word")
String word,
@RequestParam(value="dictId")
String dict)
throws Exception
request - word - dict -
Exception
protected String getDefinition(String word,
String dict)
word - dict -
protected String getCacheKey(String word,
String dict)
word - dict -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||