org.springframework.web.servlet.view.json.mock
Class MockCommandWithJsonLibConfiguratorController

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.springframework.web.servlet.view.json.mock.MockCommandWithJsonLibConfiguratorController
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller

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


Field Summary
static int EMPTY_CONFIGURATOR
           
static int SIMPLE_CONFIGURATOR
           
 
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
MockCommandWithJsonLibConfiguratorController()
           
 
Method Summary
 int getConfigurator()
           
 org.springframework.web.servlet.view.json.JsonWriterConfiguratorTemplateRegistry getConfiguratorTemplateRegistry(javax.servlet.http.HttpServletRequest request)
           
 org.springframework.web.servlet.view.json.JsonWriterConfiguratorTemplateRegistry getEmptyConfiguratorTemplateRegistry(javax.servlet.http.HttpServletRequest request)
           
protected  org.springframework.web.servlet.ModelAndView handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object command, org.springframework.validation.BindException exception)
           
protected  void initBinder(javax.servlet.http.HttpServletRequest request, org.springframework.web.bind.ServletRequestDataBinder binder)
           
 void setConfigurator(int configurator)
           
 
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, getWebBindingInitializer, initApplicationContext, isValidateOnBinding, onBind, onBind, onBindAndValidate, prepareBinder, setBindingErrorProcessor, setCommandClass, setCommandName, setMessageCodesResolver, setPropertyEditorRegistrar, setPropertyEditorRegistrars, setValidateOnBinding, setValidator, setValidators, setWebBindingInitializer, suppressBinding, suppressValidation, suppressValidation, 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, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, 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

EMPTY_CONFIGURATOR

public static final int EMPTY_CONFIGURATOR
See Also:
Constant Field Values

SIMPLE_CONFIGURATOR

public static final int SIMPLE_CONFIGURATOR
See Also:
Constant Field Values
Constructor Detail

MockCommandWithJsonLibConfiguratorController

public MockCommandWithJsonLibConfiguratorController()
Method Detail

initBinder

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

handle

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

getConfiguratorTemplateRegistry

public org.springframework.web.servlet.view.json.JsonWriterConfiguratorTemplateRegistry getConfiguratorTemplateRegistry(javax.servlet.http.HttpServletRequest request)

getEmptyConfiguratorTemplateRegistry

public org.springframework.web.servlet.view.json.JsonWriterConfiguratorTemplateRegistry getEmptyConfiguratorTemplateRegistry(javax.servlet.http.HttpServletRequest request)

getConfigurator

public int getConfigurator()

setConfigurator

public void setConfigurator(int configurator)


Copyright © 2010. All Rights Reserved.