org.springframework.security.oauth2.http.converter
类 FormOAuth2ExceptionHttpMessageConverter
java.lang.Object
org.springframework.security.oauth2.http.converter.FormOAuth2ExceptionHttpMessageConverter
- 所有已实现的接口:
- org.springframework.http.converter.HttpMessageConverter<OAuth2Exception>
public final class FormOAuth2ExceptionHttpMessageConverter
- extends Object
- implements org.springframework.http.converter.HttpMessageConverter<OAuth2Exception>
Converter that can handle inbound form data and convert it to an OAuth2 exception. Needed to support external servers,
like Facebook that might not send JSON data.
- 作者:
- Rob Winch, Dave Syer
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormOAuth2ExceptionHttpMessageConverter
public FormOAuth2ExceptionHttpMessageConverter()
canRead
public boolean canRead(Class<?> clazz,
org.springframework.http.MediaType mediaType)
- 指定者:
- 接口
org.springframework.http.converter.HttpMessageConverter<OAuth2Exception> 中的 canRead
canWrite
public boolean canWrite(Class<?> clazz,
org.springframework.http.MediaType mediaType)
- 指定者:
- 接口
org.springframework.http.converter.HttpMessageConverter<OAuth2Exception> 中的 canWrite
getSupportedMediaTypes
public List<org.springframework.http.MediaType> getSupportedMediaTypes()
- 指定者:
- 接口
org.springframework.http.converter.HttpMessageConverter<OAuth2Exception> 中的 getSupportedMediaTypes
read
public OAuth2Exception read(Class<? extends OAuth2Exception> clazz,
org.springframework.http.HttpInputMessage inputMessage)
throws IOException,
org.springframework.http.converter.HttpMessageNotReadableException
- 指定者:
- 接口
org.springframework.http.converter.HttpMessageConverter<OAuth2Exception> 中的 read
- 抛出:
IOException
org.springframework.http.converter.HttpMessageNotReadableException
write
public void write(OAuth2Exception t,
org.springframework.http.MediaType contentType,
org.springframework.http.HttpOutputMessage outputMessage)
throws IOException,
org.springframework.http.converter.HttpMessageNotWritableException
- 指定者:
- 接口
org.springframework.http.converter.HttpMessageConverter<OAuth2Exception> 中的 write
- 抛出:
IOException
org.springframework.http.converter.HttpMessageNotWritableException
Copyright © 2013. All rights reserved.