public class OAuth2ErrorHandler extends Object implements org.springframework.web.client.ResponseErrorHandler
| Constructor and Description |
|---|
OAuth2ErrorHandler(OAuth2ProtectedResourceDetails resource)
Construct an error handler that can deal with OAuth2 concerns before handling the error in the default fashion.
|
OAuth2ErrorHandler(org.springframework.web.client.ResponseErrorHandler errorHandler,
OAuth2ProtectedResourceDetails resource)
Construct an error handler that can deal with OAuth2 concerns before delegating to acustom handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleError(org.springframework.http.client.ClientHttpResponse response) |
boolean |
hasError(org.springframework.http.client.ClientHttpResponse response) |
void |
setMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters) |
public OAuth2ErrorHandler(OAuth2ProtectedResourceDetails resource)
public OAuth2ErrorHandler(org.springframework.web.client.ResponseErrorHandler errorHandler, OAuth2ProtectedResourceDetails resource)
errorHandler - a delegate handlerpublic void setMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)
messageConverters - the messageConverters to setpublic boolean hasError(org.springframework.http.client.ClientHttpResponse response)
throws IOException
hasError in interface org.springframework.web.client.ResponseErrorHandlerIOExceptionpublic void handleError(org.springframework.http.client.ClientHttpResponse response)
throws IOException
handleError in interface org.springframework.web.client.ResponseErrorHandlerIOExceptionCopyright © 2019. All rights reserved.