接口 CallbackService
- 所有已知实现类:
DefaultCallbackService
public interface CallbackService
-
方法概要
修饰符和类型方法说明voidhandlerClosed(Callback callback, String bucket, String fileId) Starts the handler that is called if the callback status is 4 (CLOSED).voidhandlerEditing(Callback callback, String bucket, String fileId) Starts the handler that is called if the callback status is 1 (EDITING).voidhandlerForcesave(Callback callback, String bucket, String fileId) Starts the handler that is called if the callback status is 6 (FORCESAVE).voidhandlerForcesaveCurrupted(Callback callback, String bucket, String fileId) Starts the handler that is called if the callback status is 7 (FORCESAVE_CORRUPTED).voidhandlerSave(Callback callback, String bucket, String fileId) Starts the handler that is called if the callback status is 2 (SAVE).voidhandlerSaveCorrupted(Callback callback, String bucket, String fileId) Starts the handler that is called if the callback status is 3 (SAVE_CORRUPTED).voidprocessCallback(Callback callback, String bucket, String fileId) Starts the callback handler.verifyCallback(Callback callback, String authorizationHeader) Verifies theCallbackobject.
-
方法详细资料
-
verifyCallback
Callback verifyCallback(Callback callback, String authorizationHeader) throws com.fasterxml.jackson.core.JsonProcessingException Verifies theCallbackobject.- 参数:
callback- TheCallbackobject with the callback handler parameters.authorizationHeader- The authorization header from the callback request.- 返回:
- The verified callback object.
- 抛出:
com.fasterxml.jackson.core.JsonProcessingException- An error occurred when processing the JSON data.
-
processCallback
Starts the callback handler. -
handlerEditing
Starts the handler that is called if the callback status is 1 (EDITING). -
handlerSave
Starts the handler that is called if the callback status is 2 (SAVE). -
handlerSaveCorrupted
Starts the handler that is called if the callback status is 3 (SAVE_CORRUPTED). -
handlerClosed
Starts the handler that is called if the callback status is 4 (CLOSED). -
handlerForcesave
Starts the handler that is called if the callback status is 6 (FORCESAVE). -
handlerForcesaveCurrupted
Starts the handler that is called if the callback status is 7 (FORCESAVE_CORRUPTED).
-