org.springframework.security.oauth2.client.http
类 OAuth2ErrorHandler
java.lang.Object
org.springframework.security.oauth2.client.http.OAuth2ErrorHandler
- 所有已实现的接口:
- org.springframework.web.client.ResponseErrorHandler
public class OAuth2ErrorHandler
- extends Object
- implements org.springframework.web.client.ResponseErrorHandler
Error handler specifically for an oauth 2 response.
- 作者:
- Ryan Heaton
|
方法摘要 |
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)
|
| 从类 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.
- 参数:
errorHandler - a delegate handler
setMessageConverters
public void setMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)
- 参数:
messageConverters - the messageConverters to set
hasError
public boolean hasError(org.springframework.http.client.ClientHttpResponse response)
throws IOException
- 指定者:
- 接口
org.springframework.web.client.ResponseErrorHandler 中的 hasError
- 抛出:
IOException
handleError
public void handleError(org.springframework.http.client.ClientHttpResponse response)
throws IOException
- 指定者:
- 接口
org.springframework.web.client.ResponseErrorHandler 中的 handleError
- 抛出:
IOException
Copyright © 2013. All rights reserved.