org.springframework.social.core
Interface ResponseStatusCodeTranslator

All Known Implementing Classes:
TwitterResponseStatusCodeTranslator

public interface ResponseStatusCodeTranslator

Strategy interface for converting responses from a social network provider into specific instances of SocialException.


Method Summary
 SocialException translate(ResponseEntity<?> responseEntity)
          Translate responseEntity into a SocialException
 

Method Detail

translate

SocialException translate(ResponseEntity<?> responseEntity)
Translate responseEntity into a SocialException

Parameters:
responseEntity - The response from the social network provider
Returns:
the exception translated from the response or null if the response doesn't translate into an error.