public class RestHandlerExceptionResolver extends AbstractRestHandlerExceptionResolver
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LOGSTACK_PROPERTY |
static String |
DEFAULT_STATUS_PROPERTY |
static String |
EXTENSION_LOGSTACK_PROPERTY_KEY |
static String |
EXTENSION_STATUS_PROPERTY_KEY |
static String |
GLOBAL_LOGSTACK_PROPERTY_KEY |
static String |
GLOBAL_STATUS_PROPERTY_KEY |
static String |
PROPERTY_ROOT_KEY |
| Constructor and Description |
|---|
RestHandlerExceptionResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculateStatusFromException(Exception e) |
protected ModelAndView |
doResolveException(HttpServletRequest request,
HttpServletResponse response,
Object handler,
Exception ex) |
protected Boolean |
getBooleanConfiguration(String key) |
protected Integer |
getIntegerConfiguration(String key) |
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setDefaultStatusCode(int defaultStatusCode)
Deprecated.
Use property webservicescommons.resthandlerexceptionresolver.DEFAULT.status instead.
|
void |
setLogStackTrace(boolean logStackTrace)
Deprecated.
Use property webservicescommons.resthandlerexceptionresolver.DEFAULT.logstack instead.
|
void |
setPropertySpecificKey(String propertySpecificKey) |
void |
setStatusCodeMappings(Map<String,Integer> statusCodeMappings)
Deprecated.
use properties webservicescommons.resthandlerexceptionresolver instead
|
protected boolean |
shouldDisplayStack(Exception e) |
getMessageConverters, getWebserviceErrorFactory, setMessageConverters, setWebserviceErrorFactory, writeWithMessageConverterspublic static final String PROPERTY_ROOT_KEY
public static final String GLOBAL_STATUS_PROPERTY_KEY
public static final String EXTENSION_STATUS_PROPERTY_KEY
public static final String GLOBAL_LOGSTACK_PROPERTY_KEY
public static final String EXTENSION_LOGSTACK_PROPERTY_KEY
public static final String DEFAULT_STATUS_PROPERTY
public static final String DEFAULT_LOGSTACK_PROPERTY
@Deprecated public void setStatusCodeMappings(Map<String,Integer> statusCodeMappings)
statusCodeMappings - protected ModelAndView doResolveException(HttpServletRequest request,
HttpServletResponse response,
Object handler,
Exception ex)
protected int calculateStatusFromException(Exception e)
protected boolean shouldDisplayStack(Exception e)
@Deprecated public void setDefaultStatusCode(int defaultStatusCode)
defaultStatusCode - @Deprecated public void setLogStackTrace(boolean logStackTrace)
logStackTrace - public void setPropertySpecificKey(String propertySpecificKey)
public void setConfigurationService(ConfigurationService configurationService)
Copyright © 2017 SAP SE. All Rights Reserved.