org.activemath.webapp.dict
Class SearchController

java.lang.Object
  extended by org.infohazard.maverick.ctl.Throwaway2
      extended by org.infohazard.maverick.ctl.ThrowawayBean2
          extended by org.activemath.webapp.base.ControllerBase
              extended by org.activemath.webapp.dict.SearchController
All Implemented Interfaces:
Controller

public class SearchController
extends ControllerBase

This controller is the processor for any search-related request. It works ont he principle of eating any request parameter, writing it to the DictionaryState (stored in the session) and redirecting the browser to a "plain" URL which is "GET"ted to deliver the content. This ensures a fully smooth sequence of back and forth and each steps to be reloadable.

More todos and observations:


Field Summary
 
Fields inherited from class org.activemath.webapp.base.ControllerBase
appContext, defaultContentType, JSON, REDIRECT, REDIRECT_LOGIN, request, response, stopwatch
 
Fields inherited from class org.infohazard.maverick.ctl.Throwaway2
ERROR, SUCCESS
 
Constructor Summary
SearchController()
           
 
Method Summary
 String action()
          This is the method you should override to implement application logic.
protected  String getLanguage()
          Return the view language computed from either the current user or the query-language.
 void setPageLimit(int pageLimit)
           
 
Methods inherited from class org.activemath.webapp.base.ControllerBase
addError, addError, enableNoCache, escapeForHtmlSafety, getAccountManager, getAppSession, getCmdName, getCurrentUser, getErrors, getHttpSession, getModel, getOutputFormat, getRequest, getResponse, getSkin, hasErrors, perform, publishControllerEvent, sendError, sendError, sendJson, sendLoginRequired, sendRedirect, sendRedirect, setPasswd, setUser
 
Methods inherited from class org.infohazard.maverick.ctl.ThrowawayBean2
go
 
Methods inherited from class org.infohazard.maverick.ctl.Throwaway2
getCtx, go
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchController

public SearchController()
Method Detail

setPageLimit

public void setPageLimit(int pageLimit)

action

public String action()
              throws Exception
Description copied from class: ControllerBase
This is the method you should override to implement application logic.

Overrides:
action in class ControllerBase
Throws:
Exception

getLanguage

protected String getLanguage()
Return the view language computed from either the current user or the query-language.

Overrides:
getLanguage in class ControllerBase
Returns:
the language