类 DefaultCallbackService
java.lang.Object
com.onlyoffice.service.documenteditor.callback.DefaultCallbackService
- 所有已实现的接口:
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.voidsetJwtManager(JwtManager jwtManager) voidsetSettingsManager(SettingsManager settingsManager) verifyCallback(Callback callback, String authorizationHeader) Verifies theCallbackobject.
-
构造器详细资料
-
DefaultCallbackService
-
-
方法详细资料
-
getJwtManager
-
setJwtManager
-
getSettingsManager
-
setSettingsManager
-
verifyCallback
public Callback verifyCallback(Callback callback, String authorizationHeader) throws com.fasterxml.jackson.core.JsonProcessingException 从接口复制的说明:CallbackServiceVerifies theCallbackobject.- 指定者:
verifyCallback在接口中CallbackService- 参数:
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
从接口复制的说明:CallbackServiceStarts the callback handler.- 指定者:
processCallback在接口中CallbackService- 参数:
callback- TheCallbackobject with the callback handler parameters.bucket- The file bucket.fileId- The file ID.- 抛出:
Exception- If the processing fails unexpectedly.
-
handlerEditing
从接口复制的说明:CallbackServiceStarts the handler that is called if the callback status is 1 (EDITING).- 指定者:
handlerEditing在接口中CallbackService- 参数:
callback- TheCallbackobject with the callback handler parameters.bucket- The file bucket.fileId- The file ID.- 抛出:
Exception- If the processing fails unexpectedly.
-
handlerSave
从接口复制的说明:CallbackServiceStarts the handler that is called if the callback status is 2 (SAVE).- 指定者:
handlerSave在接口中CallbackService- 参数:
callback- TheCallbackobject with the callback handler parameters.bucket- The file bucket.fileId- The file ID.- 抛出:
Exception- If the processing fails unexpectedly.
-
handlerSaveCorrupted
从接口复制的说明:CallbackServiceStarts the handler that is called if the callback status is 3 (SAVE_CORRUPTED).- 指定者:
handlerSaveCorrupted在接口中CallbackService- 参数:
callback- TheCallbackobject with the callback handler parameters.bucket- The file bucket.fileId- The file ID.- 抛出:
Exception- If the processing fails unexpectedly.
-
handlerClosed
从接口复制的说明:CallbackServiceStarts the handler that is called if the callback status is 4 (CLOSED).- 指定者:
handlerClosed在接口中CallbackService- 参数:
callback- TheCallbackobject with the callback handler parameters.bucket- The file bucket.fileId- The file ID.- 抛出:
Exception- If the processing fails unexpectedly.
-
handlerForcesave
从接口复制的说明:CallbackServiceStarts the handler that is called if the callback status is 6 (FORCESAVE).- 指定者:
handlerForcesave在接口中CallbackService- 参数:
callback- TheCallbackobject with the callback handler parameters.bucket- The file bucket.fileId- The file ID.- 抛出:
Exception- If the processing fails unexpectedly.
-
handlerForcesaveCurrupted
public void handlerForcesaveCurrupted(Callback callback, String bucket, String fileId) throws Exception 从接口复制的说明:CallbackServiceStarts the handler that is called if the callback status is 7 (FORCESAVE_CORRUPTED).- 指定者:
handlerForcesaveCurrupted在接口中CallbackService- 参数:
callback- TheCallbackobject with the callback handler parameters.bucket- The file bucket.fileId- The file ID.- 抛出:
Exception- If the processing fails unexpectedly.
-