私は現在、GWT 内でオブジェクトを (デ) シリアル化する適切な方法をチェックしています。すべてが素敵でダンディに見えますが、次の問題に対する答えが見つかりません。
私が次のようなインターフェースを持っているとします:
public interface OAuth {
String getAccessToken();
void setAccessToken(String accessToken);
String getRefreshToken();
void setRefreshToken(String refreshToken);
String getTokenType();
void setTokenType(String tokenType);
String getScope();
void setScope(String scope);
int getExpiresIn();
void setExpiresIn(int expiresIn);
}
これは、Bean の Java 命名規則に準拠しています。次のようなJson文字列を受け取ったとき:
{
"access_token": "",
"token_type": "",
"refresh_token": "",
"expires_in": 0,
"scope": ""
}
「access_token」から「accessToken」へのマッピングはどのように機能しますか?