magoffin.matt.ma2.web.service
Class SearchMediaItemsController

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 magoffin.matt.ma2.web.AbstractCommandController
                              extended by magoffin.matt.ma2.web.service.SearchMediaItemsController
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.servlet.mvc.Controller

public class SearchMediaItemsController
extends AbstractCommandController

Controller for searching for media items.

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Field Summary
static java.lang.String DEFAULT_SEARCH_DATE_FORMAT
          The default value for the searchDateFormat property.
 
Fields inherited from class magoffin.matt.ma2.web.AbstractCommandController
HTTP_USER_AGENT_HEADER
 
Fields inherited from class org.springframework.web.servlet.mvc.BaseCommandController
DEFAULT_COMMAND_NAME
 
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
HEADER_CACHE_CONTROL, HEADER_EXPIRES, HEADER_PRAGMA, METHOD_GET, METHOD_HEAD, METHOD_POST
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
SearchMediaItemsController()
           
 
Method Summary
protected  java.lang.Object getCommand(javax.servlet.http.HttpServletRequest request)
           
 SearchBiz getSearchBiz()
           
 magoffin.matt.util.ThreadSafeDateFormat getSearchDateFormat()
           
protected  org.springframework.web.servlet.ModelAndView handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object command, org.springframework.validation.BindException errors)
           
protected  void initBinder(javax.servlet.http.HttpServletRequest request, org.springframework.web.bind.ServletRequestDataBinder binder)
           
 void setSearchBiz(SearchBiz searchBiz)
           
 void setSearchDateFormat(magoffin.matt.util.ThreadSafeDateFormat searchDateFormat)
           
 
Methods inherited from class magoffin.matt.ma2.web.AbstractCommandController
getDomainObjectFactory, getErrorView, getMessagesSource, getSuccessView, getSystemBiz, getWebHelper, initApplicationContext, registerCalendarEditor, setDomainObjectFactory, setErrorView, setMessagesSource, setSuccessView, setSystemBiz, setWebHelper
 
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, getCommandClass, getCommandName, getMessageCodesResolver, getPropertyEditorRegistrars, getValidator, getValidators, isValidateOnBinding, onBind, onBind, onBindAndValidate, setBindingErrorProcessor, setCommandClass, setCommandName, setMessageCodesResolver, setPropertyEditorRegistrar, setPropertyEditorRegistrars, setValidateOnBinding, setValidator, setValidators, suppressBinding, suppressValidation
 
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
 
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

DEFAULT_SEARCH_DATE_FORMAT

public static final java.lang.String DEFAULT_SEARCH_DATE_FORMAT
The default value for the searchDateFormat property.

See Also:
Constant Field Values
Constructor Detail

SearchMediaItemsController

public SearchMediaItemsController()
Method Detail

getCommand

protected java.lang.Object getCommand(javax.servlet.http.HttpServletRequest request)
                               throws java.lang.Exception
Overrides:
getCommand in class org.springframework.web.servlet.mvc.BaseCommandController
Throws:
java.lang.Exception

handle

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

initBinder

protected void initBinder(javax.servlet.http.HttpServletRequest request,
                          org.springframework.web.bind.ServletRequestDataBinder binder)
                   throws java.lang.Exception
Overrides:
initBinder in class org.springframework.web.servlet.mvc.BaseCommandController
Throws:
java.lang.Exception

getSearchBiz

public SearchBiz getSearchBiz()
Returns:
the searchBiz

setSearchBiz

public void setSearchBiz(SearchBiz searchBiz)
Parameters:
searchBiz - the searchBiz to set

getSearchDateFormat

public magoffin.matt.util.ThreadSafeDateFormat getSearchDateFormat()
Returns:
the searchDateFormat

setSearchDateFormat

public void setSearchDateFormat(magoffin.matt.util.ThreadSafeDateFormat searchDateFormat)
Parameters:
searchDateFormat - the searchDateFormat to set