org.springframework.security.oauth2.provider.web
Class DefaultOAuth2ExceptionRenderer

java.lang.Object
  extended by org.springframework.security.oauth2.provider.web.DefaultOAuth2ExceptionRenderer
All Implemented Interfaces:
OAuth2ExceptionRenderer

public class DefaultOAuth2ExceptionRenderer
extends Object
implements OAuth2ExceptionRenderer

Default implementation of OAuth2ExceptionRenderer that can render the exceptions as JSON. If the caller only accepts a specific media type (like XML) then this implementation will not handle it.

Author:
Dave Syer

Constructor Summary
DefaultOAuth2ExceptionRenderer()
           
 
Method Summary
 void handleHttpEntityResponse(org.springframework.http.HttpEntity<?> responseEntity, ServletWebRequest webRequest)
           
 void setMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOAuth2ExceptionRenderer

public DefaultOAuth2ExceptionRenderer()
Method Detail

setMessageConverters

public void setMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)

handleHttpEntityResponse

public void handleHttpEntityResponse(org.springframework.http.HttpEntity<?> responseEntity,
                                     ServletWebRequest webRequest)
                              throws Exception
Specified by:
handleHttpEntityResponse in interface OAuth2ExceptionRenderer
Throws:
Exception


Copyright © 2012. All Rights Reserved.