package org.oauth2.client4j.http.response; import org.oauth2.client4j.exception.OAuthException; import org.oauth2.client4j.model.RenRenToken; import com.alibaba.fastjson.JSONObject; public class RenRenAccessTokenResponse extends OAuthResponse { private RenRenToken renrenToken; @Override public void setBody(String body) { super.setBody(body); renrenToken = JSONObject.parseObject(this.body, RenRenToken.class); if (null == renrenToken.getAccess_token()) { throw new OAuthException(body); } } public RenRenToken getRenRenToken() { return renrenToken; } }