public abstract class LogoutResponseCallback extends UserResponseCallback
UserManagement.requestLogout(LogoutResponseCallback)
) 호출할 때 넘겨주고 콜백을 받는다.Handler.Callback
Constructor and Description |
---|
LogoutResponseCallback() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
onFailure(APIErrorResult errorResult)
로그아웃 요청중 exception이 발생하였으나 강제로 세션을 클로즈 한 후 callback이 불리므로 로그인 창으로 이동하도록 구현한다.
|
protected void |
onHttpFailure(APIErrorResult errorResult)
HttpResponseHandler 를 구현한 것으로 로그아웃 요청 중에 서버에서 로그아웃을 수행하지 못했다는 결과를 받았을 때 호출된다. |
protected void |
onHttpSessionClosedFailure(APIErrorResult errorResult)
HttpResponseHandler 를 구현한 것으로 로그아웃 요청 전 또는 요청 중에 세션이 닫혀 로그인이 필요할 때 호출된다. |
protected abstract void |
onSuccess(long userId)
로그아웃을 성공적으로 마친 경우로
일반적으로 로그인창으로 이동하도록 구현한다.
|
protected void |
onSuccessUser(User user)
UserResponseCallback 를 구현한 것으로 로그아웃이 성공했을 때 호출된다. |
onHttpSuccess
dispatchMessage, dump, getLooper, getMessageName, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
protected abstract void onSuccess(long userId)
userId
- 로그아웃된 사용자의 idprotected abstract void onFailure(APIErrorResult errorResult)
ErrorCode.INVALID_PARAM_CODE
, ErrorCode.INVALID_SCOPE_CODE
, ErrorCode.NOT_SUPPORTED_API_CODE
, ErrorCode.INTERNAL_ERROR_CODE
,ErrorCode.INVALID_TOKEN_CODE
,ErrorCode.CLIENT_ERROR_CODE
, ErrorCode.EXCEED_LIMIT_CODE
, ErrorCode.KAKAO_MAINTENANCE_CODE
errorResult
- 실패한 이유protected void onSuccessUser(User user)
UserResponseCallback
를 구현한 것으로 로그아웃이 성공했을 때 호출된다.
세션을 닫고 캐시를 삭제한 후에 사용자 콜백 onSuccess(long)
을 호출한다.
return값으로 온 user객체가 비정상이더라도 강제 로그아웃을 진행한다.onSuccessUser
in class UserResponseCallback
user
- 로그아웃된 사용자protected void onHttpSessionClosedFailure(APIErrorResult errorResult)
HttpResponseHandler
를 구현한 것으로 로그아웃 요청 전 또는 요청 중에 세션이 닫혀 로그인이 필요할 때 호출된다.
로그아웃이 세션을 닫는 것이 목적이기 때문에 강제 로그아웃을 진행한다.onHttpSessionClosedFailure
in class com.kakao.http.HttpResponseHandler<Map>
errorResult
- 세션이 닫힌 이유protected void onHttpFailure(APIErrorResult errorResult)
HttpResponseHandler
를 구현한 것으로 로그아웃 요청 중에 서버에서 로그아웃을 수행하지 못했다는 결과를 받았을 때 호출된다.
로그아웃이 세션을 닫는 것이 목적이기 때문에 강제 로그아웃을 진행한다.onHttpFailure
in class com.kakao.http.HttpResponseHandler<Map>
errorResult
- 실패한 결과Copyright © 2014 Kakao Corp. All rights reserved.