Class RestHandlerExceptionResolver

  • All Implemented Interfaces:
    org.springframework.core.Ordered, org.springframework.web.servlet.HandlerExceptionResolver

    @Deprecated(since="2105",
                forRemoval=true)
    public class RestHandlerExceptionResolver
    extends AbstractRestHandlerExceptionResolver
    Deprecated, for removal: This API element is subject to removal in a future version.
    Since 2105. Use RestExceptionResolver instead.
    Exception resolver implementation for REST Web Services.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_LOGSTACK_PROPERTY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.lang.String DEFAULT_STATUS_PROPERTY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.lang.String EXTENSION_LOGSTACK_PROPERTY_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.lang.String EXTENSION_STATUS_PROPERTY_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.lang.String GLOBAL_LOGSTACK_PROPERTY_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.lang.String GLOBAL_STATUS_PROPERTY_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.lang.String PROPERTY_ROOT_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      • Fields inherited from class org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver

        logger
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Constructor Description
      RestHandlerExceptionResolver()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected int calculateStatusFromException​(java.lang.Exception e)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Calculates HTTP status code.
      protected org.springframework.web.servlet.ModelAndView doResolveException​(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, java.lang.Object handler, java.lang.Exception ex)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected java.lang.Boolean getBooleanConfiguration​(java.lang.String key)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected java.lang.Integer getIntegerConfiguration​(java.lang.String key)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setConfigurationService​(ConfigurationService configurationService)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setPropertySpecificKey​(java.lang.String propertySpecificKey)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected boolean shouldDisplayStack​(java.lang.Exception e)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Calculates boolean value used to determine if exception stacktrace should be logged.
      • Methods inherited from class org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver

        buildLogMessage, getOrder, hasHandlerMappings, logException, prepareResponse, preventCaching, resolveException, setMappedHandlerClasses, setMappedHandlers, setPreventResponseCaching, setWarnLogCategory, shouldApplyTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PROPERTY_ROOT_KEY

        public static final java.lang.String PROPERTY_ROOT_KEY
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • GLOBAL_STATUS_PROPERTY_KEY

        public static final java.lang.String GLOBAL_STATUS_PROPERTY_KEY
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • EXTENSION_STATUS_PROPERTY_KEY

        public static final java.lang.String EXTENSION_STATUS_PROPERTY_KEY
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • GLOBAL_LOGSTACK_PROPERTY_KEY

        public static final java.lang.String GLOBAL_LOGSTACK_PROPERTY_KEY
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • EXTENSION_LOGSTACK_PROPERTY_KEY

        public static final java.lang.String EXTENSION_LOGSTACK_PROPERTY_KEY
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • DEFAULT_STATUS_PROPERTY

        public static final java.lang.String DEFAULT_STATUS_PROPERTY
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • DEFAULT_LOGSTACK_PROPERTY

        public static final java.lang.String DEFAULT_LOGSTACK_PROPERTY
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RestHandlerExceptionResolver

        public RestHandlerExceptionResolver()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • shouldDisplayStack

        protected boolean shouldDisplayStack​(java.lang.Exception e)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from class: AbstractRestHandlerExceptionResolver
        Calculates boolean value used to determine if exception stacktrace should be logged.
        Overrides:
        shouldDisplayStack in class AbstractRestHandlerExceptionResolver
        Parameters:
        e - exception object
        Returns:
        information if exception stacktrace should be logged or not
      • doResolveException

        protected org.springframework.web.servlet.ModelAndView doResolveException​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                                                                  javax.servlet.http.HttpServletResponse httpServletResponse,
                                                                                  java.lang.Object handler,
                                                                                  java.lang.Exception ex)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        doResolveException in class org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver
      • getIntegerConfiguration

        protected java.lang.Integer getIntegerConfiguration​(java.lang.String key)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getBooleanConfiguration

        protected java.lang.Boolean getBooleanConfiguration​(java.lang.String key)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setPropertySpecificKey

        public void setPropertySpecificKey​(java.lang.String propertySpecificKey)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setConfigurationService

        public void setConfigurationService​(ConfigurationService configurationService)
        Deprecated, for removal: This API element is subject to removal in a future version.