Class OAuth2ErrorResponseErrorHandler

  • All Implemented Interfaces:
    org.springframework.web.client.ResponseErrorHandler

    public class OAuth2ErrorResponseErrorHandler
    extends java.lang.Object
    implements org.springframework.web.client.ResponseErrorHandler
    A ResponseErrorHandler that handles an OAuth 2.0 Error.
    Since:
    5.1
    See Also:
    ResponseErrorHandler, OAuth2Error
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleError​(org.springframework.http.client.ClientHttpResponse response)  
      boolean hasError​(org.springframework.http.client.ClientHttpResponse response)  
      void setErrorConverter​(org.springframework.http.converter.HttpMessageConverter<OAuth2Error> oauth2ErrorConverter)
      Sets the HttpMessageConverter for an OAuth 2.0 Error.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.web.client.ResponseErrorHandler

        handleError
    • Constructor Detail

      • OAuth2ErrorResponseErrorHandler

        public OAuth2ErrorResponseErrorHandler()
    • Method Detail

      • hasError

        public boolean hasError​(org.springframework.http.client.ClientHttpResponse response)
                         throws java.io.IOException
        Specified by:
        hasError in interface org.springframework.web.client.ResponseErrorHandler
        Throws:
        java.io.IOException
      • handleError

        public void handleError​(org.springframework.http.client.ClientHttpResponse response)
                         throws java.io.IOException
        Specified by:
        handleError in interface org.springframework.web.client.ResponseErrorHandler
        Throws:
        java.io.IOException
      • setErrorConverter

        public final void setErrorConverter​(org.springframework.http.converter.HttpMessageConverter<OAuth2Error> oauth2ErrorConverter)
        Sets the HttpMessageConverter for an OAuth 2.0 Error.
        Parameters:
        oauth2ErrorConverter - A HttpMessageConverter for an OAuth 2.0 Error.
        Since:
        5.7