org.springframework.security.oauth2.client.http
Class OAuth2ErrorHandler
java.lang.Object
org.springframework.security.oauth2.client.http.OAuth2ErrorHandler
- All Implemented Interfaces:
- org.springframework.web.client.ResponseErrorHandler
public class OAuth2ErrorHandler
- extends Object
- implements org.springframework.web.client.ResponseErrorHandler
Error handler specifically for an oauth 2 response.
- Author:
- Ryan Heaton
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OAuth2ErrorHandler
public OAuth2ErrorHandler(OAuth2ProtectedResourceDetails resource)
- Construct an error handler that can deal with OAuth2 concerns before handling the error in the default fashion.
OAuth2ErrorHandler
public OAuth2ErrorHandler(org.springframework.web.client.ResponseErrorHandler errorHandler,
OAuth2ProtectedResourceDetails resource)
- Construct an error handler that can deal with OAuth2 concerns before delegating to acustom handler.
- Parameters:
errorHandler - a delegate handler
setMessageConverters
public void setMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)
- Parameters:
messageConverters - the messageConverters to set
hasError
public boolean hasError(org.springframework.http.client.ClientHttpResponse response)
throws IOException
- Specified by:
hasError in interface org.springframework.web.client.ResponseErrorHandler
- Throws:
IOException
handleError
public void handleError(org.springframework.http.client.ClientHttpResponse response)
throws IOException
- Specified by:
handleError in interface org.springframework.web.client.ResponseErrorHandler
- Throws:
IOException
Copyright © 2013. All rights reserved.