org.springframework.security.oauth2.http.converter
Class FormOAuth2ExceptionHttpMessageConverter
java.lang.Object
org.springframework.security.oauth2.http.converter.FormOAuth2ExceptionHttpMessageConverter
- All Implemented Interfaces:
- 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.
- Author:
- Rob Winch, Dave Syer
| Methods inherited from class 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)
- Specified by:
canRead in interface org.springframework.http.converter.HttpMessageConverter<OAuth2Exception>
canWrite
public boolean canWrite(Class<?> clazz,
org.springframework.http.MediaType mediaType)
- Specified by:
canWrite in interface org.springframework.http.converter.HttpMessageConverter<OAuth2Exception>
getSupportedMediaTypes
public List<org.springframework.http.MediaType> getSupportedMediaTypes()
- Specified by:
getSupportedMediaTypes in interface org.springframework.http.converter.HttpMessageConverter<OAuth2Exception>
read
public OAuth2Exception read(Class<? extends OAuth2Exception> clazz,
org.springframework.http.HttpInputMessage inputMessage)
throws IOException,
org.springframework.http.converter.HttpMessageNotReadableException
- Specified by:
read in interface org.springframework.http.converter.HttpMessageConverter<OAuth2Exception>
- Throws:
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
- Specified by:
write in interface org.springframework.http.converter.HttpMessageConverter<OAuth2Exception>
- Throws:
IOException
org.springframework.http.converter.HttpMessageNotWritableException
Copyright © 2013. All rights reserved.