类 DefaultCallbackService

java.lang.Object
com.onlyoffice.service.documenteditor.callback.DefaultCallbackService
所有已实现的接口:
CallbackService

public class DefaultCallbackService extends Object implements CallbackService
  • 构造器详细资料

  • 方法详细资料

    • getJwtManager

      public JwtManager getJwtManager()
    • setJwtManager

      public void setJwtManager(JwtManager jwtManager)
    • getSettingsManager

      public SettingsManager getSettingsManager()
    • setSettingsManager

      public void setSettingsManager(SettingsManager settingsManager)
    • verifyCallback

      public Callback verifyCallback(Callback callback, String authorizationHeader) throws com.fasterxml.jackson.core.JsonProcessingException
      从接口复制的说明: CallbackService
      Verifies the Callback object.
      指定者:
      verifyCallback 在接口中 CallbackService
      参数:
      callback - The Callback object 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

      public void processCallback(Callback callback, String bucket, String fileId) throws Exception
      从接口复制的说明: CallbackService
      Starts the callback handler.
      指定者:
      processCallback 在接口中 CallbackService
      参数:
      callback - The Callback object with the callback handler parameters.
      bucket - The file bucket.
      fileId - The file ID.
      抛出:
      Exception - If the processing fails unexpectedly.
    • handlerEditing

      public void handlerEditing(Callback callback, String bucket, String fileId) throws Exception
      从接口复制的说明: CallbackService
      Starts the handler that is called if the callback status is 1 (EDITING).
      指定者:
      handlerEditing 在接口中 CallbackService
      参数:
      callback - The Callback object with the callback handler parameters.
      bucket - The file bucket.
      fileId - The file ID.
      抛出:
      Exception - If the processing fails unexpectedly.
    • handlerSave

      public void handlerSave(Callback callback, String bucket, String fileId) throws Exception
      从接口复制的说明: CallbackService
      Starts the handler that is called if the callback status is 2 (SAVE).
      指定者:
      handlerSave 在接口中 CallbackService
      参数:
      callback - The Callback object with the callback handler parameters.
      bucket - The file bucket.
      fileId - The file ID.
      抛出:
      Exception - If the processing fails unexpectedly.
    • handlerSaveCorrupted

      public void handlerSaveCorrupted(Callback callback, String bucket, String fileId) throws Exception
      从接口复制的说明: CallbackService
      Starts the handler that is called if the callback status is 3 (SAVE_CORRUPTED).
      指定者:
      handlerSaveCorrupted 在接口中 CallbackService
      参数:
      callback - The Callback object with the callback handler parameters.
      bucket - The file bucket.
      fileId - The file ID.
      抛出:
      Exception - If the processing fails unexpectedly.
    • handlerClosed

      public void handlerClosed(Callback callback, String bucket, String fileId) throws Exception
      从接口复制的说明: CallbackService
      Starts the handler that is called if the callback status is 4 (CLOSED).
      指定者:
      handlerClosed 在接口中 CallbackService
      参数:
      callback - The Callback object with the callback handler parameters.
      bucket - The file bucket.
      fileId - The file ID.
      抛出:
      Exception - If the processing fails unexpectedly.
    • handlerForcesave

      public void handlerForcesave(Callback callback, String bucket, String fileId) throws Exception
      从接口复制的说明: CallbackService
      Starts the handler that is called if the callback status is 6 (FORCESAVE).
      指定者:
      handlerForcesave 在接口中 CallbackService
      参数:
      callback - The Callback object 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
      从接口复制的说明: CallbackService
      Starts the handler that is called if the callback status is 7 (FORCESAVE_CORRUPTED).
      指定者:
      handlerForcesaveCurrupted 在接口中 CallbackService
      参数:
      callback - The Callback object with the callback handler parameters.
      bucket - The file bucket.
      fileId - The file ID.
      抛出:
      Exception - If the processing fails unexpectedly.