org.wdssii.webindex.servlet
Class WebIndexController

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.support.WebContentGenerator
              extended by org.springframework.web.servlet.mvc.AbstractController
                  extended by org.springframework.web.servlet.mvc.BaseCommandController
                      extended by org.springframework.web.servlet.mvc.AbstractCommandController
                          extended by org.wdssii.webindex.servlet.WebIndexController
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller

public class WebIndexController
extends org.springframework.web.servlet.mvc.AbstractCommandController


Nested Class Summary
static class WebIndexController.Command
           
 
Field Summary
private  WebIndexFactory indexFactory
           
private  org.apache.commons.logging.Log log
           
private  SourcesListingDAO sourcesDAO
           
 
Fields inherited from class org.springframework.web.servlet.mvc.BaseCommandController
DEFAULT_COMMAND_NAME
 
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
METHOD_GET, METHOD_HEAD, METHOD_POST
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
WebIndexController(WebIndexFactory factory, SourcesListingDAO sourcesDAO)
           
 
Method Summary
private  org.springframework.web.servlet.ModelAndView generateResponse(javax.servlet.http.HttpServletResponse response, IndexRecordList to)
          this method is in the controller because it is too inefficient to perform in the JSP
protected  org.springframework.web.servlet.ModelAndView handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object command_, org.springframework.validation.BindException errors)
           
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractCommandController
handleRequestInternal
 
Methods inherited from class org.springframework.web.servlet.mvc.BaseCommandController
bindAndValidate, checkCommand, createBinder, createCommand, getBindingErrorProcessor, getCommand, getCommandClass, getCommandName, getMessageCodesResolver, getPropertyEditorRegistrars, getValidator, getValidators, initApplicationContext, initBinder, isValidateOnBinding, onBind, onBind, onBindAndValidate, prepareBinder, setBindingErrorProcessor, setCommandClass, setCommandName, setMessageCodesResolver, setPropertyEditorRegistrar, setPropertyEditorRegistrars, setValidateOnBinding, setValidator, setValidators, suppressBinding, suppressValidation, useDirectFieldAccess
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
 
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseExpiresHeader
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, isContextRequired, setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indexFactory

private WebIndexFactory indexFactory

sourcesDAO

private SourcesListingDAO sourcesDAO

log

private final org.apache.commons.logging.Log log
Constructor Detail

WebIndexController

public WebIndexController(WebIndexFactory factory,
                          SourcesListingDAO sourcesDAO)
Method Detail

handle

protected org.springframework.web.servlet.ModelAndView handle(javax.servlet.http.HttpServletRequest request,
                                                              javax.servlet.http.HttpServletResponse response,
                                                              Object command_,
                                                              org.springframework.validation.BindException errors)
                                                       throws Exception
Specified by:
handle in class org.springframework.web.servlet.mvc.AbstractCommandController
Throws:
Exception

generateResponse

private org.springframework.web.servlet.ModelAndView generateResponse(javax.servlet.http.HttpServletResponse response,
                                                                      IndexRecordList to)
                                                               throws IOException
this method is in the controller because it is too inefficient to perform in the JSP

Throws:
IOException