public abstract class AbstractOAuth2SecurityExceptionHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger
Logger available to subclasses
|
Constructor and Description |
---|
AbstractOAuth2SecurityExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
doHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception authException) |
protected org.springframework.http.ResponseEntity<?> |
enhanceResponse(org.springframework.http.ResponseEntity<?> result,
Exception authException)
Allow subclasses to manipulate the response before it is rendered.
|
void |
setExceptionRenderer(OAuth2ExceptionRenderer exceptionRenderer) |
void |
setExceptionTranslator(WebResponseExceptionTranslator<?> exceptionTranslator) |
protected final org.apache.commons.logging.Log logger
public AbstractOAuth2SecurityExceptionHandler()
public void setExceptionTranslator(WebResponseExceptionTranslator<?> exceptionTranslator)
public void setExceptionRenderer(OAuth2ExceptionRenderer exceptionRenderer)
protected final void doHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Exception authException) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
protected org.springframework.http.ResponseEntity<?> enhanceResponse(org.springframework.http.ResponseEntity<?> result, Exception authException)
ResponseEntity
should be enhanced. If the
response body is to be customized, it should be done at the
WebResponseExceptionTranslator
level.result
- the response that was generated by the
exception translator
.authException
- the authentication exception that is being handledCopyright © 2019. All rights reserved.