org.springframework.security.oauth2.http.converter.jaxb
Class JaxbOAuth2ExceptionMessageConverter

java.lang.Object
  extended by org.springframework.http.converter.AbstractHttpMessageConverter<T>
      extended by org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<E>
          extended by org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2ExceptionMessageConverter
All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<OAuth2Exception>

public final class JaxbOAuth2ExceptionMessageConverter
extends org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<E>


Field Summary
 
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
 
Constructor Summary
JaxbOAuth2ExceptionMessageConverter()
           
 
Method Summary
protected  OAuth2Exception convertToExternal(org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2Exception jaxbOAuth2Exception)
           
protected  org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2Exception convertToInternal(OAuth2Exception exception)
           
protected  E readFromSource(Class<? extends E> clazz, org.springframework.http.HttpHeaders headers, Source source)
           
protected  boolean supports(Class<?> clazz)
           
protected  void writeToResult(E accessToken, org.springframework.http.HttpHeaders headers, Result result)
           
 
Methods inherited from class org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter
readInternal, transform, writeInternal
 
Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
canRead, canRead, canWrite, canWrite, getContentLength, getDefaultContentType, getSupportedMediaTypes, read, setSupportedMediaTypes, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxbOAuth2ExceptionMessageConverter

public JaxbOAuth2ExceptionMessageConverter()
Method Detail

convertToInternal

protected org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2Exception convertToInternal(OAuth2Exception exception)

convertToExternal

protected OAuth2Exception convertToExternal(org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2Exception jaxbOAuth2Exception)

readFromSource

protected final E readFromSource(Class<? extends E> clazz,
                                 org.springframework.http.HttpHeaders headers,
                                 Source source)
                          throws IOException
Specified by:
readFromSource in class org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<E>
Throws:
IOException

writeToResult

protected final void writeToResult(E accessToken,
                                   org.springframework.http.HttpHeaders headers,
                                   Result result)
                            throws IOException
Specified by:
writeToResult in class org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<E>
Throws:
IOException

supports

protected final boolean supports(Class<?> clazz)
Specified by:
supports in class org.springframework.http.converter.AbstractHttpMessageConverter<E>


Copyright © 2012. All Rights Reserved.