org.springframework.web.servlet.view.json.error
Class StandartErrorConverter

java.lang.Object
  extended by org.springframework.web.servlet.view.json.error.StandartErrorConverter
All Implemented Interfaces:
JsonViewCallback

public class StandartErrorConverter
extends Object
implements JsonViewCallback


Field Summary
 
Fields inherited from interface org.springframework.web.servlet.view.json.JsonViewCallback
KEEP_ALL, KEEP_ERRORS_ONLY, REMOVE_COMMAND_BEAN
 
Constructor Summary
StandartErrorConverter()
           
 
Method Summary
 String getFieldErrorsKey()
           
 String getGlobalErrorsKey()
           
 String getHasFieldErrorsKey()
           
 String getHasGlobalErrorsKey()
           
 String getModelCleanUpMode()
           
 void onPopulateErrors(Map model, org.springframework.web.servlet.support.RequestContext rc, org.springframework.validation.BindingResult br)
           
 void onPopulateSuccess(Map model, org.springframework.web.servlet.support.RequestContext rc, org.springframework.validation.BindingResult br)
          Not imlemented for default behaviour
 void setFieldErrorsKey(String fieldErrorsKey)
           
 void setGlobalErrorsKey(String globalErrorsKey)
           
 void setHasFieldErrorsKey(String hasFieldErrorsKey)
           
 void setHasGlobalErrorsKey(String hasGlobalErrorsKey)
           
 void setModelCleanUpMode(String modelCleanUpMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandartErrorConverter

public StandartErrorConverter()
Method Detail

onPopulateErrors

public void onPopulateErrors(Map model,
                             org.springframework.web.servlet.support.RequestContext rc,
                             org.springframework.validation.BindingResult br)
                      throws Exception
Specified by:
onPopulateErrors in interface JsonViewCallback
Throws:
Exception

onPopulateSuccess

public void onPopulateSuccess(Map model,
                              org.springframework.web.servlet.support.RequestContext rc,
                              org.springframework.validation.BindingResult br)
Not imlemented for default behaviour

Specified by:
onPopulateSuccess in interface JsonViewCallback

getModelCleanUpMode

public String getModelCleanUpMode()
Returns:
the modelCleanUpMode

setModelCleanUpMode

public void setModelCleanUpMode(String modelCleanUpMode)
Parameters:
modelCleanUpMode - the modelCleanUpMode to set

getHasGlobalErrorsKey

public String getHasGlobalErrorsKey()
Returns:
the hasGlobalErrorsKey

setHasGlobalErrorsKey

public void setHasGlobalErrorsKey(String hasGlobalErrorsKey)
Parameters:
hasGlobalErrorsKey - the hasGlobalErrorsKey to set

getGlobalErrorsKey

public String getGlobalErrorsKey()
Returns:
the globalErrorsKey

setGlobalErrorsKey

public void setGlobalErrorsKey(String globalErrorsKey)
Parameters:
globalErrorsKey - the globalErrorsKey to set

getHasFieldErrorsKey

public String getHasFieldErrorsKey()
Returns:
the hasFieldErrorsKey

setHasFieldErrorsKey

public void setHasFieldErrorsKey(String hasFieldErrorsKey)
Parameters:
hasFieldErrorsKey - the hasFieldErrorsKey to set

getFieldErrorsKey

public String getFieldErrorsKey()
Returns:
the fieldErrorsKey

setFieldErrorsKey

public void setFieldErrorsKey(String fieldErrorsKey)
Parameters:
fieldErrorsKey - the fieldErrorsKey to set


Copyright © 2010. All Rights Reserved.