Class RestHandlerExceptionResolver
- java.lang.Object
-
- org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver
-
- de.hybris.platform.webservicescommons.resolver.AbstractRestHandlerExceptionResolver
-
- de.hybris.platform.webservicescommons.resolver.RestHandlerExceptionResolver
-
- All Implemented Interfaces:
org.springframework.core.Ordered,org.springframework.web.servlet.HandlerExceptionResolver
@Deprecated(since="2105", forRemoval=true) public class RestHandlerExceptionResolver extends AbstractRestHandlerExceptionResolverDeprecated, for removal: This API element is subject to removal in a future version.Since 2105. UseRestExceptionResolverinstead.Exception resolver implementation for REST Web Services.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_LOGSTACK_PROPERTYDeprecated, for removal: This API element is subject to removal in a future version.static java.lang.StringDEFAULT_STATUS_PROPERTYDeprecated, for removal: This API element is subject to removal in a future version.static java.lang.StringEXTENSION_LOGSTACK_PROPERTY_KEYDeprecated, for removal: This API element is subject to removal in a future version.static java.lang.StringEXTENSION_STATUS_PROPERTY_KEYDeprecated, for removal: This API element is subject to removal in a future version.static java.lang.StringGLOBAL_LOGSTACK_PROPERTY_KEYDeprecated, for removal: This API element is subject to removal in a future version.static java.lang.StringGLOBAL_STATUS_PROPERTY_KEYDeprecated, for removal: This API element is subject to removal in a future version.static java.lang.StringPROPERTY_ROOT_KEYDeprecated, for removal: This API element is subject to removal in a future version.
-
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 intcalculateStatusFromException(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.ModelAndViewdoResolveException(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.BooleangetBooleanConfiguration(java.lang.String key)Deprecated, for removal: This API element is subject to removal in a future version.protected java.lang.IntegergetIntegerConfiguration(java.lang.String key)Deprecated, for removal: This API element is subject to removal in a future version.voidsetConfigurationService(ConfigurationService configurationService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetPropertySpecificKey(java.lang.String propertySpecificKey)Deprecated, for removal: This API element is subject to removal in a future version.protected booleanshouldDisplayStack(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 de.hybris.platform.webservicescommons.resolver.AbstractRestHandlerExceptionResolver
convertException, doResolveExceptionInternal, getAcceptedMediaTypes, getMessageConverters, getWebserviceErrorFactory, init, setMessageConverters, setOrder, setWebserviceErrorFactory, writeWithMessageConverters
-
Methods inherited from class org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver
buildLogMessage, getOrder, hasHandlerMappings, logException, prepareResponse, preventCaching, resolveException, setMappedHandlerClasses, setMappedHandlers, setPreventResponseCaching, setWarnLogCategory, shouldApplyTo
-
-
-
-
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
-
-
Method Detail
-
calculateStatusFromException
protected int calculateStatusFromException(java.lang.Exception e)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractRestHandlerExceptionResolverCalculates HTTP status code.- Overrides:
calculateStatusFromExceptionin classAbstractRestHandlerExceptionResolver- Parameters:
e- exception object- Returns:
- HTTP status code
-
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:AbstractRestHandlerExceptionResolverCalculates boolean value used to determine if exception stacktrace should be logged.- Overrides:
shouldDisplayStackin classAbstractRestHandlerExceptionResolver- 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:
doResolveExceptionin classorg.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.
-
-