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

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.JaxbOAuth2AccessTokenMessageConverter
All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<OAuth2AccessToken>

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


Field Summary
 
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
 
Constructor Summary
JaxbOAuth2AccessTokenMessageConverter()
           
 
Method Summary
protected  OAuth2AccessToken convertToExternal(org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2AccessToken jaxbAccessToken)
           
protected  org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2AccessToken convertToInternal(OAuth2AccessToken accessToken)
           
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

JaxbOAuth2AccessTokenMessageConverter

public JaxbOAuth2AccessTokenMessageConverter()
Method Detail

convertToInternal

protected org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2AccessToken convertToInternal(OAuth2AccessToken accessToken)

convertToExternal

protected OAuth2AccessToken convertToExternal(org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2AccessToken jaxbAccessToken)

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.