public class DefaultCallbackService extends Object implements CallbackService
| Modifier and Type | Field and Description |
|---|---|
private JwtManager |
jwtManager
|
private com.fasterxml.jackson.databind.ObjectMapper |
objectMapper
ObjectMapper. |
private SettingsManager |
settingsManager
|
| Constructor and Description |
|---|
DefaultCallbackService() |
| Modifier and Type | Method and Description |
|---|---|
void |
handlerClosed(Callback callback,
String fileId)
Starts the handler that is called if the callback status is 4 (CLOSED).
|
void |
handlerEditing(Callback callback,
String fileId)
Starts the handler that is called if the callback status is 1 (EDITING).
|
void |
handlerForcesave(Callback callback,
String fileId)
Starts the handler that is called if the callback status is 6 (FORCESAVE).
|
void |
handlerForcesaveCurrupted(Callback callback,
String fileId)
Starts the handler that is called if the callback status is 7 (FORCESAVE_CORRUPTED).
|
void |
handlerSave(Callback callback,
String fileId)
Starts the handler that is called if the callback status is 2 (SAVE).
|
void |
handlerSaveCorrupted(Callback callback,
String fileId)
Starts the handler that is called if the callback status is 3 (SAVE_CORRUPTED).
|
void |
processCallback(Callback callback,
String fileId)
Starts the callback handler.
|
Callback |
verifyCallback(Callback callback,
String authorizationHeader)
Verifies the
Callback object. |
private JwtManager jwtManager
private SettingsManager settingsManager
private final com.fasterxml.jackson.databind.ObjectMapper objectMapper
ObjectMapper.public Callback verifyCallback(Callback callback, String authorizationHeader) throws com.fasterxml.jackson.core.JsonProcessingException
CallbackServiceCallback object.verifyCallback in interface CallbackServicecallback - The Callback object with the callback handler parameters.authorizationHeader - The authorization header from the callback request.com.fasterxml.jackson.core.JsonProcessingException - An error occurred when processing the JSON data.public void processCallback(Callback callback, String fileId) throws Exception
CallbackServiceprocessCallback in interface CallbackServicecallback - The Callback object with the callback handler parameters.fileId - The file ID.Exception - If the processing fails unexpectedly.public void handlerEditing(Callback callback, String fileId) throws Exception
CallbackServicehandlerEditing in interface CallbackServicecallback - The Callback object with the callback handler parameters.fileId - The file ID.Exception - If the processing fails unexpectedly.public void handlerSave(Callback callback, String fileId) throws Exception
CallbackServicehandlerSave in interface CallbackServicecallback - The Callback object with the callback handler parameters.fileId - The file ID.Exception - If the processing fails unexpectedly.public void handlerSaveCorrupted(Callback callback, String fileId) throws Exception
CallbackServicehandlerSaveCorrupted in interface CallbackServicecallback - The Callback object with the callback handler parameters.fileId - The file ID.Exception - If the processing fails unexpectedly.public void handlerClosed(Callback callback, String fileId) throws Exception
CallbackServicehandlerClosed in interface CallbackServicecallback - The Callback object with the callback handler parameters.fileId - The file ID.Exception - If the processing fails unexpectedly.public void handlerForcesave(Callback callback, String fileId) throws Exception
CallbackServicehandlerForcesave in interface CallbackServicecallback - The Callback object with the callback handler parameters.fileId - The file ID.Exception - If the processing fails unexpectedly.public void handlerForcesaveCurrupted(Callback callback, String fileId) throws Exception
CallbackServicehandlerForcesaveCurrupted in interface CallbackServicecallback - The Callback object with the callback handler parameters.fileId - The file ID.Exception - If the processing fails unexpectedly.Copyright © 2023–2024. All rights reserved.