@Provider @Component(value="blJaxrsRestExceptionMapper") @Deprecated public class JaxrsRestExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<Throwable>, org.springframework.context.MessageSourceAware, org.springframework.context.ApplicationContextAware
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
context
Deprecated.
|
protected javax.ws.rs.core.HttpHeaders |
headers
Deprecated.
|
protected String |
messageKeyPrefix
Deprecated.
|
protected org.springframework.context.MessageSource |
messageSource
Deprecated.
|
| Constructor and Description |
|---|
JaxrsRestExceptionMapper()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
resolveClientMessageKey(String key)
Deprecated.
|
protected javax.ws.rs.core.MediaType |
resolveResponseMediaType(Throwable t)
Deprecated.
|
protected int |
resolveResponseStatusCode(Throwable t,
ErrorWrapper error)
Deprecated.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Deprecated.
|
void |
setMessageKeyPrefix(String prefix)
Deprecated.
This key is the prefix that will be stripped off of all message keys that are returned to a client.
|
void |
setMessageSource(org.springframework.context.MessageSource messageSource)
Deprecated.
|
javax.ws.rs.core.Response |
toResponse(Throwable t)
Deprecated.
|
protected String messageKeyPrefix
@Context protected javax.ws.rs.core.HttpHeaders headers
protected org.springframework.context.MessageSource messageSource
protected org.springframework.context.ApplicationContext context
public javax.ws.rs.core.Response toResponse(Throwable t)
toResponse in interface javax.ws.rs.ext.ExceptionMapper<Throwable>public void setMessageSource(org.springframework.context.MessageSource messageSource)
setMessageSource in interface org.springframework.context.MessageSourceAwarepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setMessageKeyPrefix(String prefix)
resolveClientMessageKey method.prefix - protected int resolveResponseStatusCode(Throwable t, ErrorWrapper error)
protected javax.ws.rs.core.MediaType resolveResponseMediaType(Throwable t)
Copyright © 2015. All Rights Reserved.