接口 CallbackService

所有已知实现类:
DefaultCallbackService

public interface CallbackService
  • 方法详细资料

    • verifyCallback

      Callback verifyCallback(Callback callback, String authorizationHeader) throws com.fasterxml.jackson.core.JsonProcessingException
      Verifies the Callback object.
      参数:
      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

      void processCallback(Callback callback, String bucket, String fileId) throws Exception
      Starts the callback handler.
      参数:
      callback - The Callback object with the callback handler parameters.
      bucket - The file bucket.
      fileId - The file ID.
      抛出:
      Exception - If the processing fails unexpectedly.
    • handlerEditing

      void handlerEditing(Callback callback, String bucket, String fileId) throws Exception
      Starts the handler that is called if the callback status is 1 (EDITING).
      参数:
      callback - The Callback object with the callback handler parameters.
      bucket - The file bucket.
      fileId - The file ID.
      抛出:
      Exception - If the processing fails unexpectedly.
    • handlerSave

      void handlerSave(Callback callback, String bucket, String fileId) throws Exception
      Starts the handler that is called if the callback status is 2 (SAVE).
      参数:
      callback - The Callback object with the callback handler parameters.
      bucket - The file bucket.
      fileId - The file ID.
      抛出:
      Exception - If the processing fails unexpectedly.
    • handlerSaveCorrupted

      void handlerSaveCorrupted(Callback callback, String bucket, String fileId) throws Exception
      Starts the handler that is called if the callback status is 3 (SAVE_CORRUPTED).
      参数:
      callback - The Callback object with the callback handler parameters.
      bucket - The file bucket.
      fileId - The file ID.
      抛出:
      Exception - If the processing fails unexpectedly.
    • handlerClosed

      void handlerClosed(Callback callback, String bucket, String fileId) throws Exception
      Starts the handler that is called if the callback status is 4 (CLOSED).
      参数:
      callback - The Callback object with the callback handler parameters.
      bucket - The file bucket.
      fileId - The file ID.
      抛出:
      Exception - If the processing fails unexpectedly.
    • handlerForcesave

      void handlerForcesave(Callback callback, String bucket, String fileId) throws Exception
      Starts the handler that is called if the callback status is 6 (FORCESAVE).
      参数:
      callback - The Callback object with the callback handler parameters.
      bucket - The file bucket.
      fileId - The file ID.
      抛出:
      Exception - If the processing fails unexpectedly.
    • handlerForcesaveCurrupted

      void handlerForcesaveCurrupted(Callback callback, String bucket, String fileId) throws Exception
      Starts the handler that is called if the callback status is 7 (FORCESAVE_CORRUPTED).
      参数:
      callback - The Callback object with the callback handler parameters.
      bucket - The file bucket.
      fileId - The file ID.
      抛出:
      Exception - If the processing fails unexpectedly.